High Performance JavaScript

Front Cover
"O'Reilly Media, Inc.", Mar 11, 2010 - Computers - 231 pages
3 Reviews

If you're like most developers, you rely heavily on JavaScript to build interactive and quick-responding web applications. The problem is that all of those lines of JavaScript code can slow down your apps. This book reveals techniques and strategies to help you eliminate performance bottlenecks during development. You'll learn how to improve execution time, downloading, interaction with the DOM, page life cycle, and more.

Yahoo! frontend engineer Nicholas C. Zakas and five other JavaScript experts—Ross Harmes, Julien Lecomte, Steven Levithan, Stoyan Stefanov, and Matt Sweeney—demonstrate optimal ways to load code onto a page, and offer programming tips to help your JavaScript run as efficiently and quickly as possible. You'll learn the best practices to build and deploy your files to a production environment, and tools that can help you find problems once your site goes live.

  • Identify problem code and use faster alternatives to accomplish the same task
  • Improve scripts by learning how JavaScript stores and accesses data
  • Implement JavaScript code so that it doesn't slow down interaction with the DOM
  • Use optimization techniques to improve runtime performance
  • Learn ways to ensure the UI is responsive at all times
  • Achieve faster client-server communication
  • Use a build system to minify files, and HTTP compression to deliver them to the browser
 

What people are saying - Write a review

User Review - Flag as inappropriate

While the book does have some basic info about older versions of JavaScript, the author (Nicholas C Zakas) comes across as a bit of a hack. I don't see anything impressive he's ever done online, wonder why he's writing a book about this. Maybe he should start with something more basic.

User Review - Flag as inappropriate

Every web application developer who need deep knowledge of Javascript, must have this book in their book brigade.

Contents

Chapter 1 Loading and Execution
1
Chapter 2 Data Access
15
Chapter 3 DOM Scripting
35
Chapter 4 Algorithms and Flow Control
61
Chapter 5 Strings and Regular Expressions
81
Chapter 6 Responsive Interfaces
107
Chapter 7 Ajax
125
Chapter 8 Programming Practices
151
Chapter 9 Building and Deploying HighPerformance JavaScript Applications
163
Chapter 10 Tools
177
Index
203
Copyright

Other editions - View all

Common terms and phrases

About the author (2010)

Nicholas C. Zakas is a front-end consultant, author, and speaker. He worked at Yahoo! for almost five years, where he was front-end tech lead for the Yahoo! homepage and a contributor to the YUI library. He is the author of Professional JavaScript for Web Developers (Wrox, 2012), Professional Ajax (Wrox, 2007), and High Performance JavaScript(O Reilly, 2010). Nicholas is a strong advocate for development best practices including progressive enhancement, accessibility, performance, scalability, and maintainability. He blogs regularly at http: //www.nczonline.net/ and can be found on Twitter via @slicknet.

Bibliographic information