Instant Dependency Management with RequireJS How-to

Greg Franko

  • 出版商: Packt Publishing
  • 出版日期: 2013-05-13
  • 售價: $950
  • 貴賓價: 9.5$903
  • 語言: 英文
  • 頁數: 42
  • 裝訂: Paperback
  • ISBN: 1782169067
  • ISBN-13: 9781782169062
  • 下單後立即進貨 (約3~4週)

商品描述

Optimize the performance and maintainability of your web applications with RequireJS with this book and ebook

Overview

  • 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

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.

What you will learn from this book

  • 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

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks.A concise guide that delivers immediate results with practical recipes on customizing your projects.

Who this book is written for

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