Free Sample
+ Collection

Instant Dependency Management with RequireJS How-to

Starting
Greg Franko

Optimize the performance and maintainability of your web applications with RequireJS
$14.99
RRP $14.99
eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782169062
Paperback42 pages

About This Book

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Filled with useful tips to improve the performance and maintainability of web applications
  • Contains valuable guidance to integrate popular third-party libraries, such as jQuery, the jQueryUI Widget Factory, and Backbone.js, with RequireJS
  • Includes extensive RequireJS plugin examples for dynamically rendering JavaScript templates, optimizing JavaScript files, and more

Who This Book Is For

This book is for intermediate to advanced JavaScript developers who are interested in learning more about AMD specification and RequireJS.

Table of Contents

Chapter 1: Instant Dependency Management with RequireJS How-to
Using RequireJS (Intermediate)
Setting RequireJS configurations (Intermediate)
Creating AMD modules (Advanced)
Using jQuery and jQueryUI Widget Factory plugins with RequireJS (Advanced)
Using Backbone.js and Lodash.js with RequireJS (Intermediate)
Separating mobile web and desktop logic with RequireJS (Intermediate)
Using JavaScript templates with the RequireJS text plugin (Intermediate)
Creating Jasmine unit tests with RequireJS (Intermediate)
Using the RequireJS optimizer (Advanced)

What You Will Learn

  • Investigate synchronous and asynchronous methods to kick start your application with RequireJS
  • Create application level RequireJS configuration settings
  • Explore reusable and non-reusable AMD modules
  • Use and create jQuery and jQueryUI Widget Factory plugins with RequireJS
  • Discover the best practices for using non-AMD compatible JavaScript files with RequireJS
  • Learn techniques for maintaining one codebase to support a mobile web and desktop application
  • Explore how to dynamically render Lodash templates with the RequireJS text plugin
  • Explore techniques for optimizing an entire JavaScript project with the RequireJS optimizer

In Detail

Asynchronous Module Definition (AMD) script loaders are fast becoming one of the most popular tools for improving the performance and maintainability of front-end web applications. RequireJS stands out as the most popular AMD script loader, and comes packed with amazing features.

Instant Dependency Management with RequireJS How-to will guide you on how to improve the performance and maintainability of your JavaScript applications with RequireJS. You will learn simple to advanced techniques for converting your JavaScript application to an AMD workflow.

This hands-on guide will teach you both basic and advanced techniques when using the AMD script loader RequireJS.

It covers how to create AMD modules to make your web application more maintainable, how to use jQuery, jQueryUI, Backbone.js, Lodash.js, Jasmine, and other third-party libraries with RequireJS, how to incorporate RequireJS plugins to dynamically render JavaScript templates and optimize JavaScript files, and how to unit test a RequireJS application.

Authors

Read More