Hi RamiK

On Jan 23, 11:47 pm, RamiK <[email protected]> wrote:

>
> It seems to me that, at the end of the day, GWT creates 1 large HTML
> file (per browser type) that contains all my code in Javascript. That
> works great in small scale but already at this stage, when I have
> hardly written anything, the html files are 500kb.
>

If you have hardly written anything and you have js files of 500Kb,
something is very wrong with what you've done. A smallish non-trivial
app with maybe 30-40 client side classes should come in maybe 150K. An
app with maybe 200/300+ classes should come in around maybe 400K. The
latter being in range of a serious business web application UI. I
think people have mentioned js file sizes of around 800K - 1MB on the
group for big enterprise applications.

Make sure your GWT compiler setting is -OBFUSCATE if you haven't done
so - this makes a huge difference. Otherwise you may have written
something strange to produce this js file of 500Kb.

The other thing to remember is that these js files are usually cached
by the browser and subsequently checked for updates, so people using
the app every day from the same workstation don't wait for this
download. If the app is big, it is usually building the UI HTML (i.e.
running the javascript) that takes the time, therefore phasing
construction, generating parts in reasonable chunks on demand, can
make a much bigger difference.

regards
gregor









> What will happen when I finish developing my product? Will I end up
> with a 10Mb HTML file? The load performance will be terrible, not to
> mention that there may be some size limitation in the browser for
> length of HTML file or ability to handle thousands of lines of
> javascript code (??).
>
> Are my concerns founded? Is the GWT development team planning on
> addressing these issues in a future release?
> Did anybody already develop a massive GWT application? How large did
> the HTML file get?
>
> Thanks!
> R
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to