Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2023-04-05 Thread Axel R.
hello,
is it possible to delete this post ?
thanks you

On Thursday, 5 July 2012 at 07:20:19 UTC-5 regnoult axel wrote:

> Thanks a lot Jens, this discussion gave me enought information to go 
> futher...
>
> Cheers,
> Axel.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/69b50c43-a69a-4a06-a711-3b8fccea0e68n%40googlegroups.com.


Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-05 Thread Jens


 I do not see the difference (can you indicate me a piece of code) between 
 *ClientBundle with CssResource *and *ClientBundle + CssResource *?


There is no difference, I just was a bit lazy to write with again ;-)
 

 *#2*
 *
 *

  You have to create a separate ClientBundle/CssResource that you only 
 use inside your admin area. 


 I have : 
  * public interface AR extends ClientBundle {*
 *   public static final AR ADMIN_RES_INSTANCE = 
 GWT.create(AR.class);*
 *
 *
 * public interface Acss extends CssResource {}*
 *
 *
 *
 @Source(A.css)
 Acss adminCss();
 *
 *}*

 (NB: AR = AdminResource, Acss = AdminCss):

 My question is : Should I call *adminCss().ensureInjected()* AFTER the 
 split point ? Actually, I call ensuredInjected() in the MananaSeguro#*
 EntryPoint*() of my application.


You have to call it inside the split point, e.g.

GWT.runAsync(new AsyncCallbackAdminArea() {
  onSuccess(AdminArea adminArea) {
AR ar = GWT.create(AR.class); //could also be called inside AdminArea
ar.adminCss().ensureInjected(); //could also be called inside AdminArea
app.show(adminArea);
  }
});

If you want a clean split point you have to reference the code you want to 
split out the first time inside the onSuccess() method and nowhere else. 
Your static INSTANCE variable would prevent your ClientBundle to be 
downloaded in the split point because this will create an instance during 
app startup and to create it GWT has to know the code.

 

 *#3*
 My last question (I hope...), is that I have not succeed to use GWT 2.5 
 SUPER DEV MODE. The doc talks about a -- * Dev Mode On bookmarklet* -- (
 https://developers.google.com/web-toolkit/articles/superdevmode) but this 
 bookmarklet never appear in my case. What should I missed ?


You have to visit the Super Dev Mode code server on http://localhost:9876 
and drag and drop the bookmarklet into your browser's bookmark bar.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Koc7G6rX6BQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-05 Thread regnoult axel
Thanks a lot Jens, this discussion gave me enought information to go
futher...

Cheers,
Axel.

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-04 Thread regnoult axel
Hello,

Ok, firstly I should read the documentation, and I will do it, but maybe 
you could clarify me most of my preoccupations :

For now it seems that my resources (images, css) are taking enough memory 
at the initial download. Maybe you can help me to reduce it... :)

I am asking the following : 

*#1*
I have not used *inline CSS*, I mean, I did not put any css code in my *ui 
binder* files. I just use 3 stylesheets (admin.css, common.css, normal.css) 
that are declarated in the client bundle. 
- Will *inline css *reduce the code to download ?
- How could I do to not download the admin.css at startup but just when the 
user go to the admin ?

*#2*  
Actually I am thinking that : all images declarated as ImageResource or 
DataResources inside a ClientBundle will be download  at startup time. Is 
it true ?

*#3*
As Joseph tolds me, the server should  compress the content (RPC + images) ?
 - Could I do that with *YUI **Compressor** *?
 - I heard about a tool to compress images (Webp - 
https://developers.google.com/speed/webp/index )...Should I use a combination 
of YUI Compressor AND Webp ?
 - How to compress RPC ?


*#4*
Finally there is so much tools that I do not what should be the *code 
optimization 
workflow* ?

** I assume that I should not go to a further step without having 
accomplished the current one. (I would not play with speed tracer without 
having already analyzed all code split points)

For the moment, my vision about using tools for code optimization is the 
following one (could you correct or complete me if I have misunderstood or 
have forgotten an important thing ?) : 

*step 1* - (compiler) - Use -compileReport and see where should I introduce 
*code split points*.

*step 2* - (plugin) - Use *inspectorwidget *(I have not used yet...) to 
optimize the DOM structure (minimizing the use of gwt widgets). 

*step 3* - (tool) - Use *Speed tracer* to see what happen at execution time 
(if handlers are slowing my app)

*step 4 *- (tool)  - Use various other tools to see their suggestions about 
optimizing the code:
   -* Page speed Service* : 
https://developers.google.com/speed/pagespeed/service)
   - *WebPageTest* :  http://www.webpagetest.org/
   - *YSlow *: http://developer.yahoo.com/yslow/

*step 5* - (compiler)  - when ready for production,   use more compiler 
option (closureCompiler...) to reduce the javascript code generated.

Remarks, I do not know at witch moment should I use* Chrome Developper 
tool*with the Timeline, Profile ... functionalities ?


Thanks a lot, again, for your help.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0sixH8JfEg0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-04 Thread Joseph R Lust

 *#1
 *I have not used *inline CSS*, I mean, I did not put any css code in my
 *ui binder* files. I just use 3 stylesheets (admin.css, common.css,
 normal.css) that are declarated in the client bundle.
 - Will *inline css *reduce the code to download ?
 - How could I do to not download the admin.css at startup but just when
 the user go to the admin ?


Sorry, that was confusion. Using CSS directly in the *style* attribute is
an anti-pattern. What I meant was that if you use the
CssResourcehttp://code.google.com/p/google-web-toolkit/wiki/CssResourceCookbookinterfaces,
then GWT will combine and minify your CSS automatically for the
smallest possible package. This is great since if you point the Chrome
audit tool at most sites, they will show that they have downloaded 3000+
unused styles. Further, only these are inlined into your JS file by the
compiler (what I was referring to), then you no longer need to download any
CSS files at load.


 *#3
 *As Joseph tolds me, the server should  compress the content (RPC +
 images) ?
  - Could I do that with *YUI **Compressor** *?
  - I heard about a tool to compress images
  - I heard about a tool to compress images (Webp -
 https://developers.google.com/speed/webp/index )...Should I use a combination
 of YUI Compressor AND Webp ?
  - How to compress RPC ?


I was not referring to the YUI compressor. The compiler in GWT (and the
Closure Compiler in 2.5) do a far better job than the minimizer that is YUI
Compressor.

I meant you should enable gzipping of compressible resources (not images).
This depends on your server. I'm running Apache, so I just use mod_gzip.
There are many 
tutorialshttp://www.techiepark.com/tutorials/how-to-enable-gzip-compression-in-apache-server-to-speed-up-website/out
there. As long as the sender accepts gzip encoding, you'll be fine.


Sincerely,
Joseph

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-04 Thread Jens


 *#1*
 I have not used *inline CSS*, I mean, I did not put any css code in my *ui 
 binder* files. I just use 3 stylesheets (admin.css, common.css, 
 normal.css) that are declarated in the client bundle. 
 - Will *inline css *reduce the code to download ?


If you use ClientBundle with CssResource your CSS code is already inlined 
into your app. Inlining itself does not reduce the download size,  but if 
you use ClientBundle + CssResource GWT will minify your CSS. That means it 
removes unused CSS classes, converts your possibly long CSS classnames into 
shorter ones, merges CSS classes and rules where it makes sense and removes 
all white spaces. So I would say you can't make it any smaller. The only 
thing you can do is to tell GWT to shorten your class names even more.

 

 - How could I do to not download the admin.css at startup but just when 
 the user go to the admin ?


You have to create a separate ClientBundle/CssResource that you only use 
inside your admin area. Then you use GWT's code splitting and you split out 
your admin area. If done correctly your app will start/load without any 
code from your admin area and once you click on admin and you pass your 
code split point GWT will load the admin code (which includes the admin 
ClientBundle).


*#2*  
 Actually I am thinking that : all images declarated as ImageResource or 
 DataResources inside a ClientBundle will be download  at startup time. Is 
 it true ?


Not 100%. For IE6 and IE7 GWT will create a combined image that contains 
your small images. That means if you have 4 icons with 16x16 pixel size 
then GWT will create a single 32x32 pixel image that contains these 4 icons 
and GWT stores information about where to find these 4 icons in that 
combined image into your app. Obviously this won't work for animated gif's. 
This does not reduce the download size of the images itself, but it saves 
some network overhead (less server requests). These combined images won't 
be loaded at startup time, they will be loaded when you need them.

For other browsers GWT only inlines Images if they are not too large. If 
you disable image inlining globally then GWT will use combined images for 
every browser.

 

 *#3*
 As Joseph tolds me, the server should  compress the content (RPC + images) 
 ?
  - Could I do that with *YUI **Compressor** *?
  - I heard about a tool to compress images (Webp - 
 https://developers.google.com/speed/webp/index )...Should I use a combination 
 of YUI Compressor AND Webp ?
  - How to compress RPC ?


As Joseph already said, the best compression you can get is to configure 
your web server to use gzip compression. And if you don't want your web 
server to compress your resources on the fly then you could also use GWTs 
Precompress linker 
(http://code.google.com/p/google-web-toolkit/wiki/PrecompressLinker) that 
will generated gzipped files for you. Most web servers can be configured to 
serve these gzipped files.

 

 *#4*
 Finally there is so much tools that I do not what should be the *code 
 optimization 
 workflow* ?


First I would think about GWTs split points. They can really save you a lot 
of startup time. For example we have a 3 MB permutation but only have to 
download ~800kb at the start of the app because of split points. In 
combination with gzip compression on the web server these ~800kb will 
become ~300kb that a user has to download...thats 10% of the permutation 
size. The rest of the code will be loaded when needed. So these two points 
will save you the most!

And of course it helps if:
- you can reduce the amount of different GWT widgets used in your app
- simplify the DOM if possible
- you don't have duplicate/similar code lying around (try Googles CodePro 
Analytix for Eclipse to find similar code and refactor it)
*BUT* these optimizations are really time consuming and won't give you such 
a great benefit in terms of size reduction. So I would not give them a high 
priority (well ok, except duplicate/similar code refactor ;-)).

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/jif07bkqpKcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-04 Thread regnoult axel
Hello,

First at all, many thanks for your answers, I am learning a lot actually...

@Jens: I have some misunderstood in your answer : 

*#1* 

  If you use* ClientBundle with CssResource* your CSS code is already 
 inlined into your app. Inlining itself does not reduce the download size, 
  but if you use *ClientBundle + CssResource *GWT will minify your CSS. 


I do not see the difference (can you indicate me a piece of code) between 
*ClientBundle 
with CssResource *and *ClientBundle + CssResource *?


 *#2*
*
*

  You have to create a separate ClientBundle/CssResource that you only use 
 inside your admin area. 


I have : 
 * public interface AR extends ClientBundle {*
*   public static final AR ADMIN_RES_INSTANCE = 
GWT.create(AR.class);*
*
*
* public interface Acss extends CssResource {}*
*
*
*
@Source(A.css)
Acss adminCss();
*
*}*

(NB: AR = AdminResource, Acss = AdminCss):

My question is : Should I call *adminCss().ensureInjected()* AFTER the 
split point ? Actually, I call ensuredInjected() in the MananaSeguro#*
EntryPoint*() of my application.


 *#3*
My last question (I hope...), is that I have not succeed to use GWT 2.5 
SUPER DEV MODE. The doc talks about a -- * Dev Mode On bookmarklet* -- (
https://developers.google.com/web-toolkit/articles/superdevmode) but this 
bookmarklet never appear in my case. What should I missed ?

 I did :

add-linker name=xsiframe/
set-configuration-property name=devModeRedirectEnabled value=true/

and in Chrome :

 


Thanks you Jens for all the usefull answers.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UBpOfYo39q0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread regnoult axel
Hello,

I am living in Bolivia and here, I have a connection equals to 200 Kbps (it 
is very poor). :(

So I was asking if google engineers are considerating a minimum bandwith 
when testing their app ?

This is important, because when starting my aplication 
(www.mananaseguro.com) , even if I am trying to optimize it, I have for the 
moment 17 seconds to wait to see the first page (and my app is minimalist) 
for* the first time*. Then I think it is due to the cache, it loads a lot 
faster (4 seconds, such as when I open GMAIL here).

In other terms, does '*Google*' recommend a minimum Internet connexion to 
use a GWT application in production ?

Could you give me indications or details explaining why the first time 
loading is a lot slower and then why it loads quickly (I think it is 
because informations are stocked in the browser cache, but what kind of 
information exactly ?)

Thank you for your help,










-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/cKPRjyYLdoEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread jhulford
I'd suggest reading the stuff in What's with all the cache/nocache stuff 
and weird filenames? about the bootstrap process.

https://developers.google.com/web-toolkit/doc/2.4/FAQ_DebuggingAndCompiling

On Tuesday, July 3, 2012 8:03:17 AM UTC-4, regnoult axel wrote:

 Hello,

 I am living in Bolivia and here, I have a connection equals to 200 Kbps 
 (it is very poor). :(

 So I was asking if google engineers are considerating a minimum bandwith 
 when testing their app ?

 This is important, because when starting my aplication (
 www.mananaseguro.com) , even if I am trying to optimize it, I have for 
 the moment 17 seconds to wait to see the first page (and my app is 
 minimalist) for* the first time*. Then I think it is due to the cache, it 
 loads a lot faster (4 seconds, such as when I open GMAIL here).

 In other terms, does '*Google*' recommend a minimum Internet connexion to 
 use a GWT application in production ?

 Could you give me indications or details explaining why the first time 
 loading is a lot slower and then why it loads quickly (I think it is 
 because informations are stocked in the browser cache, but what kind of 
 information exactly ?)

 Thank you for your help,












-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BrYMNQwEcg8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Jim Douglas
I'm not sure it's possible to make a general statement; it depends on
your application.

If you haven't already done this, take a look at -compileReport; it
can show you what contributes to the size of your application.

https://developers.google.com/web-toolkit/doc/latest/DevGuideCompileReport

Also try adding these options to reduce the size of your generated
application:

-XdisableClassMetadata (breaks getClass().getName()).
-XdisableCastChecking (eliminates ClassCastException).

https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#DevGuideCompilerOptions

On Jul 3, 5:03 am, regnoult axel regno...@gmail.com wrote:
 Hello,

 I am living in Bolivia and here, I have a connection equals to 200 Kbps (it
 is very poor). :(

 So I was asking if google engineers are considerating a minimum bandwith
 when testing their app ?

 This is important, because when starting my aplication
 (www.mananaseguro.com) , even if I am trying to optimize it, I have for the
 moment 17 seconds to wait to see the first page (and my app is minimalist)
 for* the first time*. Then I think it is due to the cache, it loads a lot
 faster (4 seconds, such as when I open GMAIL here).

 In other terms, does '*Google*' recommend a minimum Internet connexion to
 use a GWT application in production ?

 Could you give me indications or details explaining why the first time
 loading is a lot slower and then why it loads quickly (I think it is
 because informations are stocked in the browser cache, but what kind of
 information exactly ?)

 Thank you for your help,

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread regnoult axel
Ok thank you for the tips, indeed, the compile report will be very usefull. 
It s a nice feature.

Could you help me a little more to understand different things related to 
the report I have ?

*#1 - *I just see this at the begenning of the report : 

Permutation 0 ()
   
   - Split Point 
Reportfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/SoycDashboard-0-index.html
   - Compiler 
Metricsfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/CompilerMetrics-0-index.html

- Why I have just one permutation (I use GWT 2.5 and just the 
-compileReport argument ) ?
- The link Compiler Metric give me a page not found, do you know why ?

*#2* -  When I click on permutation 0, I have this : 

*Split Points*#LocationSize (Bytes)% of total
1...@com.mananaseguro.client.gin.ClientGinjectorImpl$1::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp1-0-overallBreakdown.html
6,7440@com.mananaseguro.client.gin.ClientGinjectorImpl$3::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp2-0-overallBreakdown.html
4,5580@com.mananaseguro.client.gin.ClientGinjectorImpl$5::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp3-0-overallBreakdown.html
291,45218@com.mananaseguro.client.gin.ClientGinjectorImpl$6::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp4-0-overallBreakdown.html
48,6543@com.mananaseguro.client.gin.ClientGinjectorImpl$7::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp5-0-overallBreakdown.html
5,7970@com.mananaseguro.client.gin.ClientGinjectorImpl$10::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp6-0-overallBreakdown.html
34,0622@com.mananaseguro.client.gin.ClientGinjectorImpl$11::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp7-0-overallBreakdown.html
4,5100@com.mananaseguro.client.gin.ClientGinjectorImpl$12::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp8-0-overallBreakdown.html
152,0189@com.mananaseguro.client.gin.ClientGinjectorImpl$13::getfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/sp9-0-overallBreakdown.html

- I do not understand why there is just ClientGinjectorImpl as Location ? 
(I am using the GWT-Plateform that make heavy use of dependency injection )
- I do not understand what $1:get $2:get $3:get ... $13:get are refering 
for ?

Thank you for your help,




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/zlh9XNsHIsAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Joseph Lust
Also make sure the server is compressing content, both for static resources 
and for your RPC calls. That will help with the initial download a lot too.

Also consider using the ClientBundle resources like CssResource and 
ImageResource. If your internet connection is so poor, I think you're 
better off inlining some of those small images and CSS rules, rather than 
making additional requests.

Best luck.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mTQMutCfg5wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Jim Douglas
The missing CompilerMetrics-*-index.html files is this bug:

http://code.google.com/p/google-web-toolkit/issues/detail?id=6691

So ignore the missing CompilerMetrics* files and just focus on the
Split Point Reports; they'll tell you how much space was taken up by
various components generated into your JavaScript files.

Also, I'm assuming you're generating Obfuscated code for production;
the other formats are readable for debugging, but they're about 10x
bigger.

If you drill down into the lower levels of those reports, they provide
more detail about individual components.  You can find some articles
about optimizing GWT here:

https://developers.google.com/web-toolkit/doc/latest/DevGuideOptimizing

One more suggestion:  Add this to your *.gwt.xml file:

set-property name=compiler.stackMode value=strip/

It's explained here:

http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Controls

And one more...see if this can suggest any tweaks to your page:

https://developers.google.com/speed/pagespeed/insights

On Jul 3, 5:18 pm, regnoult axel regno...@gmail.com wrote:
 Ok thank you for the tips, indeed, the compile report will be very usefull.
 It s a nice feature.

 Could you help me a little more to understand different things related to
 the report I have ?

 *#1 - *I just see this at the begenning of the report :

 Permutation 0 ()

    - Split Point 
 Reportfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/SoycDashboa 
 rd-0-index.html
    - Compiler 
 Metricsfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/CompilerMe 
 trics-0-index.html

 - Why I have just one permutation (I use GWT 2.5 and just the
 -compileReport argument ) ?
 - The link Compiler Metric give me a page not found, do you know why ?

 *#2* -  When I click on permutation 0, I have this :

 *Split Points*#LocationSize (Bytes)% of total
 1...@com.mananaseguro.client.gin.ClientGinjectorImpl$1::getfile:///C:/MS/doc/m
  ananaseguro/soycReport/compile-report/sp1-0-overallBreakdown.html
 6,7440@com.mananaseguro.client.gin.ClientGinjectorImpl$3::getfile:///C:/MS/doc/m
  ananaseguro/soycReport/compile-report/sp2-0-overallBreakdown.html
 4,5580@com.mananaseguro.client.gin.ClientGinjectorImpl$5::getfile:///C:/MS/doc/m
  ananaseguro/soycReport/compile-report/sp3-0-overallBreakdown.html
 291,45218@com.mananaseguro.client.gin.ClientGinjectorImpl$6::getfile:///C:/MS/doc/m
  ananaseguro/soycReport/compile-report/sp4-0-overallBreakdown.html
 48,6543@com.mananaseguro.client.gin.ClientGinjectorImpl$7::getfile:///C:/MS/doc/m
  ananaseguro/soycReport/compile-report/sp5-0-overallBreakdown.html
 5,7970@com.mananaseguro.client.gin.ClientGinjectorImpl$10::getfile:///C:/MS/doc/
  mananaseguro/soycReport/compile-report/sp6-0-overallBreakdown.html
 34,0622@com.mananaseguro.client.gin.ClientGinjectorImpl$11::getfile:///C:/MS/doc/
  mananaseguro/soycReport/compile-report/sp7-0-overallBreakdown.html
 4,5100@com.mananaseguro.client.gin.ClientGinjectorImpl$12::getfile:///C:/MS/doc/
  mananaseguro/soycReport/compile-report/sp8-0-overallBreakdown.html
 152,0189@com.mananaseguro.client.gin.ClientGinjectorImpl$13::getfile:///C:/MS/doc/
  mananaseguro/soycReport/compile-report/sp9-0-overallBreakdown.html

 - I do not understand why there is just ClientGinjectorImpl as Location ?
 (I am using the GWT-Plateform that make heavy use of dependency injection )
 - I do not understand what $1:get $2:get $3:get ... $13:get are refering
 for ?

 Thank you for your help,

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Jim Douglas
FWIW, I'm using these optimization options in my *.gwt.xml file:

  !-- Obfuscate RPC class names (shrinks large string literals)  --
  inherits name='com.google.gwt.user.RemoteServiceObfuscateTypeNames'/


  !-- Strip out stack trace code to reduce JavaScript size   --
  set-property name=compiler.stackMode value=strip/

  !-- This option assumes that we don't access enum string names --
  set-configuration-property name=compiler.enum.obfuscate.names
value=true/

Each of those options reduces the size of the generated JavaScript;
the extent of the improvement will depend on your particular mix of
code.

On Jul 3, 7:18 pm, Jim Douglas jdou...@basis.com wrote:
 The missing CompilerMetrics-*-index.html files is this bug:

 http://code.google.com/p/google-web-toolkit/issues/detail?id=6691

 So ignore the missing CompilerMetrics* files and just focus on the
 Split Point Reports; they'll tell you how much space was taken up by
 various components generated into your JavaScript files.

 Also, I'm assuming you're generating Obfuscated code for production;
 the other formats are readable for debugging, but they're about 10x
 bigger.

 If you drill down into the lower levels of those reports, they provide
 more detail about individual components.  You can find some articles
 about optimizing GWT here:

 https://developers.google.com/web-toolkit/doc/latest/DevGuideOptimizing

 One more suggestion:  Add this to your *.gwt.xml file:

 set-property name=compiler.stackMode value=strip/

 It's explained here:

 http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Co...

 And one more...see if this can suggest any tweaks to your page:

 https://developers.google.com/speed/pagespeed/insights

 On Jul 3, 5:18 pm, regnoult axel regno...@gmail.com wrote:







  Ok thank you for the tips, indeed, the compile report will be very usefull.
  It s a nice feature.

  Could you help me a little more to understand different things related to
  the report I have ?

  *#1 - *I just see this at the begenning of the report :

  Permutation 0 ()

     - Split Point 
  Reportfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/SoycDashboa 
  rd-0-index.html
     - Compiler 
  Metricsfile:///C:/MS/doc/mananaseguro/soycReport/compile-report/CompilerMe 
  trics-0-index.html

  - Why I have just one permutation (I use GWT 2.5 and just the
  -compileReport argument ) ?
  - The link Compiler Metric give me a page not found, do you know why ?

  *#2* -  When I click on permutation 0, I have this :

  *Split Points*#LocationSize (Bytes)% of total
  1...@com.mananaseguro.client.gin.ClientGinjectorImpl$1::getfile:///C:/MS/doc/m
   ananaseguro/soycReport/compile-report/sp1-0-overallBreakdown.html
  6,7440@com.mananaseguro.client.gin.ClientGinjectorImpl$3::getfile:///C:/MS/doc/m
   ananaseguro/soycReport/compile-report/sp2-0-overallBreakdown.html
  4,5580@com.mananaseguro.client.gin.ClientGinjectorImpl$5::getfile:///C:/MS/doc/m
   ananaseguro/soycReport/compile-report/sp3-0-overallBreakdown.html
  291,45218@com.mananaseguro.client.gin.ClientGinjectorImpl$6::getfile:///C:/MS/doc/m
   ananaseguro/soycReport/compile-report/sp4-0-overallBreakdown.html
  48,6543@com.mananaseguro.client.gin.ClientGinjectorImpl$7::getfile:///C:/MS/doc/m
   ananaseguro/soycReport/compile-report/sp5-0-overallBreakdown.html
  5,7970@com.mananaseguro.client.gin.ClientGinjectorImpl$10::getfile:///C:/MS/doc/
   mananaseguro/soycReport/compile-report/sp6-0-overallBreakdown.html
  34,0622@com.mananaseguro.client.gin.ClientGinjectorImpl$11::getfile:///C:/MS/doc/
   mananaseguro/soycReport/compile-report/sp7-0-overallBreakdown.html
  4,5100@com.mananaseguro.client.gin.ClientGinjectorImpl$12::getfile:///C:/MS/doc/
   mananaseguro/soycReport/compile-report/sp8-0-overallBreakdown.html
  152,0189@com.mananaseguro.client.gin.ClientGinjectorImpl$13::getfile:///C:/MS/doc/
   mananaseguro/soycReport/compile-report/sp9-0-overallBreakdown.html

  - I do not understand why there is just ClientGinjectorImpl as Location ?
  (I am using the GWT-Plateform that make heavy use of dependency injection )
  - I do not understand what $1:get $2:get $3:get ... $13:get are refering
  for ?

  Thank you for your help,

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Dennis Haupt
well, it *has* to be downloaded before it can be executed, there is no
way around it. you can try to split your code into smaller parts
(google: code splitting gwt) so you don't get over much more than your
17 seconds.

Am 03.07.2012 14:03, schrieb regnoult axel:
 Hello,
 
 I am living in Bolivia and here, I have a connection equals to 200 Kbps
 (it is very poor). :(
 
 So I was asking if google engineers are considerating a minimum bandwith
 when testing their app ?
 
 This is important, because when starting my aplication
 (www.mananaseguro.com) , even if I am trying to optimize it, I have for
 the moment 17 seconds to wait to see the first page (and my app is
 minimalist) for*the first time*. Then I think it is due to the cache, it
 loads a lot faster (4 seconds, such as when I open GMAIL here).
 
 In other terms, does '/Google/' recommend a minimum Internet connexion
 to use a GWT application in production ?
 
 Could you give me indications or details explaining why the first time
 loading is a lot slower and then why it loads quickly (I think it is
 because informations are stocked in the browser cache, but what kind of
 information exactly ?)
 
 Thank you for your help,
 
 
 
 
 
 
 
 
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/cKPRjyYLdoEJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.