Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Chapter 10
Writing Effective jQuery Code
WHAT’S IN THIS CHAPTER?
Now that you’ve walked through the breadth of what jQuery has to offer, it’s time to look at some specific ways in which you can improve your jQuery code.
In this chapter, you learn a variety of techniques, best practices, and patterns that you can apply to your code immediately to make it more efficient, maintainable, and clear.
You’ll discover optimization techniques pulled from an understanding of JavaScript fundamentals, an understanding of the relationship between the DOM and the JavaScript engine in web browsers, and from the way CSS selectors are parsed by Sizzle and other selector engines.