Hi all,
How can I make my GWT code (i.e. the .js files) load/execute before
the other body elements in the browser? Please see the example below:
<body>
<script type="text/javascript" language="javascript"
src="com.google.gwt.sample.hello.Hello.nocache.js"></script>
<script> alert("alert2");</script>
</body>
Furthermore, in my Hello.java file, I have an Window.alert("alert1")
call in the onModuleLoad() function. I would expect alert1 to display
before alert2, since html loading happens sequentially. But, that does
not seem to be the case with gwt. Could that be because GWT seperates
the .js code into "cache" and "nocache" components? I am just
confused!!
Thanks in advance for your help,
--Eytan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---