Instant Dependency Management with RequireJS How-to
暫譯: 即時依賴管理與 RequireJS 實用指南

Greg Franko

  • 出版商: Packt Publishing
  • 出版日期: 2013-05-13
  • 售價: $1,020
  • 貴賓價: 9.5$969
  • 語言: 英文
  • 頁數: 42
  • 裝訂: Paperback
  • ISBN: 1782169067
  • ISBN-13: 9781782169062
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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.

商品描述(中文翻譯)

優化您的網頁應用程式的性能和可維護性,使用本書和電子書中的 RequireJS

概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時結果
- 充滿有用的提示,以改善網頁應用程式的性能和可維護性
- 包含整合流行第三方庫的寶貴指導,例如 jQuery、jQueryUI Widget Factory 和 Backbone.js,與 RequireJS 一起使用
- 包含大量 RequireJS 插件範例,用於動態渲染 JavaScript 模板、優化 JavaScript 檔案等

詳細內容
非同步模組定義(AMD)腳本加載器正迅速成為改善前端網頁應用程式性能和可維護性的最受歡迎工具之一。RequireJS 脫穎而出,成為最受歡迎的 AMD 腳本加載器,並擁有驚人的功能。

《RequireJS 即時依賴管理指南》將指導您如何使用 RequireJS 改善 JavaScript 應用程式的性能和可維護性。您將學習從簡單到進階的技術,將您的 JavaScript 應用程式轉換為 AMD 工作流程。

這本實用指南將教您使用 AMD 腳本加載器 RequireJS 的基本和進階技術。

它涵蓋了如何創建 AMD 模組以使您的網頁應用程式更具可維護性,如何使用 jQuery、jQueryUI、Backbone.js、Lodash.js、Jasmine 和其他第三方庫與 RequireJS 一起使用,如何整合 RequireJS 插件以動態渲染 JavaScript 模板和優化 JavaScript 檔案,以及如何對 RequireJS 應用程式進行單元測試。

您將從本書中學到的內容
- 探索同步和非同步方法,以使用 RequireJS 啟動您的應用程式
- 創建應用程式級別的 RequireJS 配置設定
- 探索可重用和不可重用的 AMD 模組
- 使用和創建 jQuery 和 jQueryUI Widget Factory 插件與 RequireJS
- 發現使用不兼容 AMD 的 JavaScript 檔案與 RequireJS 的最佳實踐
- 學習維護一個代碼庫以支持移動網頁和桌面應用程式的技術
- 探索如何使用 RequireJS 文本插件動態渲染 Lodash 模板
- 探索使用 RequireJS 優化器優化整個 JavaScript 專案的技術

方法
本書充滿實用的逐步指導和清晰的解釋,針對最重要和有用的任務。一本簡明的指南,提供即時結果,並提供定制項目的實用食譜。

本書的讀者對象
本書適合中級到高級的 JavaScript 開發人員,對學習更多有關 AMD 規範和 RequireJS 的內容感興趣。