Reputation: 1317
Can someone explain what happens after the java code is converted to Javascript by the GWT compiler? how will the compiled javascript reach the client browser and when does this happen.
Upvotes: 0
Views: 429
Reputation: 1137
The GWT compiler generates output files as described here.
At a very high level. There is a very tiny loader file (the .nocache.) which you should include in a script tag in your page. This file's only job is to determine the correct compiled application code files to request from the server. This load happens asynchronously after the nocache script has loaded.
Upvotes: 1
Reputation: 337
Well from your server, you serve a html page which should contain a tag that points to your compiled javascript.
Example of what the script tag would look like
<script type="text/javascript" language="javascript" src="http://example.com/js/project/project.nocache.js"></script>
Upvotes: 1