Reputation: 5153
I am trying to find out how code-splitting works in GWT. For this, I am following the example they have provided at https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting. It works as expected, in the 2nd case with the RunAsyncCallback
, the string Hello, AJAX is not visible in the cache.html
files. But when running in development mode, when I click the button, I don't see any Ajax request being fired in Firebug even though the alert shows just fine.
So it means that the content is present somewhere around (perhaps in the cache.js
files), it is not fetched from the server on the fly. If so, then what is the point of code-splitting?
Upvotes: 0
Views: 112
Reputation: 37778
The requests are only fired in compiled mode. In development mode, the GWT browser plugin takes over, and forwards the calls to the code server.
In compiled mode, it's all there as you would expect it. Just have a look at the directory war/mymodulename/deferredjs/
Upvotes: 4