开发者

GWT production mode doesn't work on Chrome browser

I compiled my GWT application and am testing it in the production mode. The application works fine on all browsers, except Google Chrome, which only an empty page shows up.

I tried to see if there were开发者_Go百科 any options for compilation, but there weren't. Can somebody let me know what's wrong?

thanks,

-- Javad


If you test via URL like 'file:///' , Chrome will block this URL The solution is upload your file to server (or localhost) and test via 'http://'


To simplify the answer by user453586. To run it from local host do the following:

  1. Run the project in eclipse(run as->web app)
  2. Take the generated localhost url and remove the gwt.codeserv part, e.g. http://127.0.0.1:8888/StockWatcher.html

This will run it in production mode, you would notice the increase in speed of the page load.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜