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

Summary


AJAX as a technology has been around for years. It can arguably be seen as a game-changer, where the use of JavaScript killed the need to continually refresh page content within a browser. jQuery has helped to enhance this group of technologies. In this chapter we revisited some of the basics, before exploring how best to take our development skills further. Let's recap what we've learnt:

We kicked off with a brief look back at what AJAX is, and reminded ourselves of the basics of constructing an AJAX request within jQuery.

Next, we took a look at some of the tips and tricks we can use to improve the speed of loading from static sites; we picked up one additional trick in the form of using localStorage to cache content. We then moved onto discussing how implementing callbacks can make code messy and slow, before moving onto seeing how Deferreds and Promises can improve our code, and ultimately the performance of our sites.

We finished off with a look at a demo, where we borrowed one...