The jQuery Core
WHAT’S IN THIS CHAPTER?
- jQuery Utility Functions
- Understanding the DOM and Events
In this chapter, you learn about basics of using the jQuery core, about wrapper objects, and briefly take a look under the hood. You’ll find it useful to have some IDE with the ability to collapse blocks of code when perusing through the jQuery source. You’ll also revisit DOM elements and how jQuery handles events.
UNDERSTANDING THE STRUCTURE OF A JQUERY SCRIPT
Some mainstream languages (which shall go unnamed) contain a monolithic “standard library,” which really isn’t so standard. Rather than using a standard library with a common denominator set of tools, several additional modules are added. This results in unnecessarily large downloads, wasted resources, and functionality that you may never use. On the other hand, the creators of jQuery very thoughtfully kept out these kinds of “add on” modules, and kept the jQuery core small and compact. It is, however, extensible through the plugin system, which is covered in Chapter 12.
The jQuery core function, sometimes ...