Re: Size of code download in GWT

2008-12-08 Thread Thomas Broyer



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 Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Size of code download in GWT

2008-12-07 Thread Reinier Zwitserloot

To be a bit more verbose about it:

Exactly one individual ASKDJALSDJASLKDJSAD.js.html file is downloaded
in its entirety by any given user visiting your site. Which one gets
downloaded depends on the browser used, and if you're using
localization or other generator splits, that too. It certainly won't
download individual -parts- of a js file.

Each individual js file is carefully stripped of everything that isn't
needed. If your js files are 500k, you're doing something wrong. -
style pretty or -style detailed will certainly do it. Adding some
known very heavy libraries such as one of the many varieties of ext-
gwt or gwt-ext (I forgot which one) will also add to the size, but
500k is exceptional.

Remember that you can (and should) configure your webserver to zip
these up.

On Dec 7, 12:07 am, 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?

 -FunWithGWT
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Size of code download in GWT

2008-12-06 Thread funwithgwt

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?

-FunWithGWT

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Size of code download in GWT

2008-12-06 Thread Ian Bambury
You probably have -style pretty or detailed. The site in my sig is about
220k per html file.
Ian

http://examples.roughian.com


2008/12/6 funwithgwt [EMAIL PROTECTED]


 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?

 -FunWithGWT

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---