> > *#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 CssResource<http://code.google.com/p/google-web-toolkit/wiki/CssResourceCookbook>interfaces, 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 tutorials<http://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 [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.
