O'Reilly logo

jQuery Design Patterns by Thodoris Greasidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Optimization Patterns

This chapter presents several optimization techniques that can be used to improve the performance of jQuery applications, especially when they become large and complex.

We will start with simple practices like bundling and minifying our JavaScript files and discuss the benefits of using CDNs to load third-party libraries. We will then move on to analyze some simple patterns for writing efficient JavaScript code and learn how to write efficient CSS selectors in order to improve the page's rendering speed and DOM traversals using jQuery.

We will then study jQuery-specific practices such as the caching of jQuery Composite Collection Objects, how to minimize DOM manipulations, and have a reminder of the Delegate Observer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required