Book Image

Mastering jQuery

By : Alex Libby
Book Image

Mastering jQuery

By: Alex Libby

Overview of this book

<p>Mastering jQuery has been written not only to help maximize your skills with core functionality in the library, but also to explore some of the more intriguing ways of using the library to achieve real-world solutions that could feature on any website or online environment.</p> <p>You'll start with a look at some of the more advanced ways to incorporate the library into your pages, followed by working with forms and advanced form validation using regular expressions. Next you'll move on to animating in jQuery, advanced event handling, and using jQuery effects.</p> <p>Finally, you will develop practical examples of using jQuery with external functionality such as node-webkit, before finishing with a session on optimizing your version of the library for maximum efficiency and exploring best practices for using QUnit.</p>
Table of Contents (21 chapters)
Mastering jQuery
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Staying with the use of jQuery


At this point, you would be forgiven for thinking that I've completely lost the plot, particularly when we've just been examining ways of optimizing it, only to suggest that we completely remove its use from our code. Why, I hear you ask, would I even consider dropping jQuery?

Well, there are several good reasons for this. Anyone can write jQuery code, but the smart developer should always consider if they should use jQuery to solve a problem:

  • jQuery is an abstraction library. It needs JavaScript, and was built at a time when developing for browsers of the day could be a real challenge. The need to abstract away browser inconsistencies is becoming less and less. It's important to remember that we should use jQuery to progressively enhance plain JavaScript; jQuery was first and foremost designed to make writing JavaScript easier, and is not a language in its own right.

  • Browsers are closer than they've ever been, in terms of offering functionality. With Firefox...