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:
- Run the project in eclipse(run as->web app)
- 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.
精彩评论