Chapter 5. Using client bundles

 

This chapter covers
  • Examining ClientBundles and DataResources
  • Creating and using text and image resources
  • Dealing efficiently with styling problems using CSS resources

 

In this chapter we’ll take a look at how access to images, binary documents, text files, stylesheets, and other static resources GWT uses can be optimized at compile time through the use of the ClientBundle.

Typically, a web application will request each needed resource individually, making no attempt to bundle similar resources and requiring a new connection for each. Where load times are concerned, connection count is the enemy. Each connection requires a nontrivial amount of time to set up, so anything that you can do to reduce ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.