I have few JavaScripts (abt 35kb) getting downloaded at the beginning
even thought it is used later in the app.Can i load javascript lazily
with GWT apps.
For example I use lightbox which will not be used at the beginning of
the app ,so i can i download the GWT generated html first to build
home
If the scripts can execute a function when they are finished loading,
you can use the script injection technique. Basically, you create a
script DOM element and attach it. The catch is that you won't know
when the script is finished loading unless you wait for a function to
be executed by the
Thanks for the reply .
I am compressing the html file(gzip) but my html file is 190 kb .It
takes 12 secs to download.
Can I reduce the size by using multiple modules so that the initial
page load can be quick and the subsequent module html files can be
downloaded lazily.
Will multiple modules
You could try creating multiple modules and having some parts of the
application load up a new GWT module. I don't know of any tutorials,
sorry.
There is a GWT feature under development called 'runAsync' that is
meant to help developer split up code for just the kind of thing
you're talking
On Wed, Feb 11, 2009 at 3:34 PM, Ghostcoder thanneer.ma...@gmail.com wrote:
I have created my site using gwt1.5 and I have used gwt google map api
too.When i open my site in the browser I realize that a main.js file
is downloaded from maps.google.com. which is 68 kb(4 sec to download)
and my
I have created my site using gwt1.5 and I have used gwt google map api
too.When i open my site in the browser I realize that a main.js file
is downloaded from maps.google.com. which is 68 kb(4 sec to download)
and my cache html is 200kb(9 sec to download) so the site takes a
while to load .These