5.5. Summary

We’ve shown you how ClientBundle allows you to organize all of the static resources you may need for a component into a nice, neat package that’s considerably more efficient than if the resources were loaded using traditional methods. We’ve also covered how you can optimize data, text, and images.

You also saw that DataResource allows arbitrary binary documents to be packaged into the ClientBundle, where their cacheability is improved via the use of a hashed URL, or by incorporating the file into the JavaScript payload as a data URL.

Next, we showed you how to use TextResource to both add static text resources to the JavaScript payload and load them asynchronously. Both techniques reduced connection count and improved cacheability ...

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.