Chetya
Chetya

Reputation: 1317

GWT lifecycle - Deferred binding at runtime.What happens

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

Answers (2)

idle
idle

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

roelkok
roelkok

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

Related Questions