Mastering jQuery Год: 2015 Автор: Alex Libby Издательство: Packt Publishing ISBN: 978-1-78398-546-3 Язык: Английский Формат: PDF/EPUB/MOBI Качество: Изначально компьютерное (eBook) Интерактивное оглавление: Да Количество страниц: 400 Описание: About This Book Create and decouple custom event types to efficiently use them and suit your users' needs Incorporate custom, optimized versions of the jQuery library into your pages to maximize the efficiency of your website Get the most out of jQuery by gaining exposure to real-world examples with tricks and tips to enhance your skills Who This Book Is For If you are a developer who is already familiar with using jQuery and wants to push your skill set further, then this book is for you. The book assumes an intermediate knowledge level of jQuery, JavaScript, HTML5, and CSS. What You Will Learn Learn how to better organize your code, using one of the many design patterns available for the library Develop your skills further in some of the core jQuery subjects, such as event handling, using AJAX, and animating elements Develop your skills within technologies where you might not consider using jQuery, such as the Page Visibility API or using node-webKit Explore some of the more advanced tips and tricks for optimizing jQuery to maintain performance Learn how to improve your development workflow when testing jQuery to help reduce the manual effort needed to produce results Automate testing using NodeJS and RequireJS In Detail 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. 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. 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.
Примеры страниц
Оглавление
Preface Chapter 1: Installing jQuery Downloading and installing jQuery Using other sources to install jQuery Customizing the downloads of jQuery from Git Adding source map support Working with Modernizr as a fallback Best practices for loading jQuery Chapter 2: Customizing jQuery Getting prepared Patching the library on the run Replacing or modifying existing behaviors Creating a basic monkey patch Considering the benefits of monkey patching Updating animation support in jQuery Adding WebP support to jQuery Considering the pitfalls of monkey patching Distributing or applying patches Chapter 3: Organizing Your Code Introducing design patterns Defining design patterns Dissecting the structure of a design pattern Categorizing patterns Exploring the use of patterns within the jQuery library Chapter 4: Working with Forms Exploring the need for form validation Creating a basic form Starting with simple HTML5 validation Using jQuery to validate our forms Validating forms using regex statements Building a simple validation plugin Developing a plugin architecture for validation Creating an advanced contact form using AJAX Developing an advanced file upload form using jQuery Chapter 5: Integrating AJAX Revisiting AJAX Improving the speed of loading data with static sites Using localStorage to cache AJAX content Using callbacks to handle multiple AJAX requests Enhancing your code with jQuery Deferreds and Promises Working with Deferreds and Promises Modifying our advance contact form Detailing AJAX best practices Chapter 6: Animating in jQuery Choosing CSS or jQuery Controlling the jQuery animation queue Improving jQuery animations Introducing easing functions Designing custom animations Implementing some custom animations Animating in a responsive website Handling animation requests on a responsive site Animating content for mobile devices Implementing responsive parallax scrolling Chapter 7: Advanced Event Handling Introducing event handling Delegating events Using the $.proxy function Creating and decoupling custom event types Namespacing events Chapter 8: Using jQuery Effects Revisiting effects Creating custom effects Applying custom easing functions to effects Adding callbacks to our effects Controlling content with jQuery's Promises Creating and managing the effect queue Chapter 9: Using the Web Performance APIs An introduction to the Page Visibility API Supporting the API Implementing the Page Visibility API Detecting support for the Page Visibility API Using the API in a practical context Introducing the requestAnimationFrame API Some examples of using requestAnimationFrame Chapter 10: Manipulating Images Manipulating colors in images Adding filters using CSS3 Blending images using CSS3 Applying filters with CamanJS Creating simple filters manually Animating images with filters Creating a signature pad and exporting the image Capturing and manipulating webcam images Finishing up Chapter 11: Authoring Advanced Plugins Detecting signs of a poorly developed plugin Introducing design patterns Designing an advanced plugin Converting animations to use CSS3 automatically Extending our plugin Packaging our plugin using Bower Automating the provision of documentation Returning values from our plugin Exploring best practices and principles Chapter 12: Using jQuery with the Node-WebKit Project Setting the scene Introducing Node-WebKit Preparing our development environment Installing and building our first application Building our simple application Packaging and deploying your app Taking things further Chapter 13: Enhancing Performance in jQuery Understanding why performance is critical Monitoring the speed of jQuery using Firebug Automating performance monitoring Linting jQuery code automatically Minifying code using NodeJS Working out unused JavaScript Implementing best practices Staying with the use of jQuery Chapter 14: Testing jQuery Revisiting QUnit Automating tests with QUnit Exploring best practices when using QUnit Index
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum