On 7 déc, 00:07, funwithgwt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a question about the size of downloaded code for GWT
> applications. I notice that the Modlename.js file that is included in
> the ModuleName.html file is quite small. I am looking at 5K approx.
> However the generated html files, which are generated on a per browser
> basis are quite large -on the order of 500K. I am assuming that only
> the portion of code in 500K file that is required based on the
> dependencies starting from Module.java file are downloaded from
> server. For example if the there are 1000 widgets in the generated
> code but only one widget is instantiated then only the code for that
> one widget is downloaded to the browser. Is this correct?

No, the whole "application" is downloaded (as Reinier said), but it
will become a reality (sort of) in GWT 1.6 with runAsync.

(note: if you have a method in your Java code that is never ever
called –think: not "callable", not a single "call point" in your
code–, or a class that is never ever instantiated, then it won't be
"compiled", it will be optimized out at compile time by the dead-code
pruner)
--~--~---------~--~----~------------~-------~--~----~
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