After compiling our gwt project we get one statndard.css file which loads to 
the client consuming 1 http request.
We also have our application specific style.css file which loads consuming 1 
seperate http request.

To reduce the number of http requests, how should i combine them into 1 css 
file ?

If you're getting to this level of hyper optimization, you probably just 
want to copy/paste the styles that you're actually using from standard.css 
and put them into your style.css and not import the standard theme. 

Also look at taking style.css and making it a CssResource, that way it will 
get pulled down with the javascript and now you've cut out 2 http requests. 
See the link below for more info. 

Also, we have many application specific images which loads to the client 
using 1 http request for 1 image. If i create 1 ImageBundle and put all 
images into this bundle, how do i get this bundle loaded to the client in 
just 1 http request at the application start up time ?


Take a look at ClientBundle, it will create the sprites for you and manage 
them. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

-- 
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