13. Frameworks

The rise of frameworks is one of the reasons for JavaScript’s larger role in today’s Web, and you can’t fully appreciate modern JavaScript without learning frameworks, too. In this chapter, you’ll be introduced to two of the most popular frameworks—jQuery and the Yahoo! User Interface (YUI) Library. You’ll pick up the fundamentals for using both, and see a couple of specific add-ons for each. The chapter begins, though, with a discussion of how you should select a framework, as well as the arguments for and against them in general.

Choosing a Framework

Once you’ve decided to learn a framework, the natural question is: Which framework? Clearly, jQuery is the current dominant JavaScript framework, and it would be a reasonable decision ...

Get Modern JavaScript: Develop and Design 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.