Mastering JavaScript High Performance

Master the art of building, deploying, and optimizing faster web applications with JavaScript

Mastering JavaScript High Performance

Chad R. Adams

Master the art of building, deploying, and optimizing faster web applications with JavaScript
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784397296
Paperback208 pages

Book Description

Studying JavaScript performance in depth will make you capable of tackling the complex and important tasks required to solve performance issues. In this book, you'll learn when and why to use an IDE over a common text editor. Packed with examples, you'll also learn how to create a build system to test and deploy your JavaScript project by optimizing the code. Next, you will move on to learn about DOM optimization, JavaScript promises, and web workers to better break up your large codebase. You will also learn about JavaScript performance on mobile platforms such as iOS and Android and how to deploy your JavaScript project to a device. Finally, by the end of the book, you'll be able to pinpoint JavaScript performance problems using appropriate tools, provide optimization techniques, and provide tools to develop fast applications with JavaScript.

Table of Contents

Chapter 1: The Need for Speed
Weren't websites always fast?
Summary
Chapter 2: Increasing Code Performance with JSLint
Checking the JavaScript code performance
What is JavaScript linting?
Summary
Chapter 3: Understanding JavaScript Build Systems
What is a build system?
Setting up our build system
Summary
Chapter 4: Detecting Performance
Web Inspectors in general
Summary
Chapter 5: Operators, Loops, and Timers
Operators
Loops
Timers
Summary
Chapter 6: Constructors, Prototypes, and Arrays
Building with constructors and instance functions
Alternate constructor functions using prototypes
Array performance
Summary
Chapter 7: Hands off the DOM
Why worry about the DOM?
Don't we need an MV-whatever library?
Creating new objects using the createElement function
Animating elements
Understanding paint events
Pesky mouse scrolling events
Summary
Chapter 8: Web Workers and Promises
Understanding the limitations first
Web workers
Promises
Summary
Chapter 9: Optimizing JavaScript for iOS Hybrid Apps
Getting ready for iOS development
iOS hybrid development
Summary
Chapter 10: Application Performance Testing
What is unit testing in JavaScript?
Unit testing with Jasmine
Summary

What You Will Learn

  • Test existing JavaScript code using JSLint and understand how to better optimize JavaScript code
  • Create your own build system for JavaScript projects using Node.js and GulpJS
  • Get to know best performance-focused practices when writing JavaScript code
  • Use the DOM more efficiently by optimizing JavaScript with CSS3 animations
  • Learn how to unit test JavaScript code using Jasmine

Authors

Table of Contents

Chapter 1: The Need for Speed
Weren't websites always fast?
Summary
Chapter 2: Increasing Code Performance with JSLint
Checking the JavaScript code performance
What is JavaScript linting?
Summary
Chapter 3: Understanding JavaScript Build Systems
What is a build system?
Setting up our build system
Summary
Chapter 4: Detecting Performance
Web Inspectors in general
Summary
Chapter 5: Operators, Loops, and Timers
Operators
Loops
Timers
Summary
Chapter 6: Constructors, Prototypes, and Arrays
Building with constructors and instance functions
Alternate constructor functions using prototypes
Array performance
Summary
Chapter 7: Hands off the DOM
Why worry about the DOM?
Don't we need an MV-whatever library?
Creating new objects using the createElement function
Animating elements
Understanding paint events
Pesky mouse scrolling events
Summary
Chapter 8: Web Workers and Promises
Understanding the limitations first
Web workers
Promises
Summary
Chapter 9: Optimizing JavaScript for iOS Hybrid Apps
Getting ready for iOS development
iOS hybrid development
Summary
Chapter 10: Application Performance Testing
What is unit testing in JavaScript?
Unit testing with Jasmine
Summary

Book Details

ISBN 139781784397296
Paperback208 pages
Read More

Read More Reviews

Recommended for You

Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Learning JavaScript Data Structures and Algorithms Book Cover
Learning JavaScript Data Structures and Algorithms
$ 26.99
$ 5.40
Mastering JavaScript Design Patterns Book Cover
Mastering JavaScript Design Patterns
$ 26.99
$ 18.90
JavaScript and JSON Essentials Book Cover
JavaScript and JSON Essentials
$ 17.99
$ 12.60