Buying Options
High Performance JavaScript

Save a Tree - Go Digital What is this?

Ebook $27.99
Add to Cart
Print+Ebook $38.49
Add to Cart
Print $34.99
Add to Cart
Print £26.99 What is this?
Add to Cart
Safari Books Online
Read Now >
Description

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 optimal ways to load code onto a page, programming tips to help your JavaScript run as efficiently and quickly as possible, best practices to build and deploy your files to a production environment, and more.

Full Description
Table of Contents
  1. Chapter 1 Loading and Execution

    1. Script Positioning

    2. Grouping Scripts

    3. Nonblocking Scripts

    4. Summary

  2. Chapter 2 Data Access

    1. Managing Scope

    2. Object Members

    3. Summary

  3. Chapter 3 DOM Scripting

    1. DOM in the Browser World

    2. DOM Access and Modification

    3. Repaints and Reflows

    4. Event Delegation

    5. Summary

  4. Chapter 4 Algorithms and Flow Control

    1. Loops

    2. Conditionals

    3. Recursion

    4. Summary

  5. Chapter 5 Strings and Regular Expressions

    1. String Concatenation

    2. Regular Expression Optimization

    3. String Trimming

    4. Summary

  6. Chapter 6 Responsive Interfaces

    1. The Browser UI Thread

    2. Yielding with Timers

    3. Web Workers

    4. Summary

  7. Chapter 7 Ajax

    1. Data Transmission

    2. Data Formats

    3. Ajax Performance Guidelines

    4. Summary

  8. Chapter 8 Programming Practices

    1. Avoid Double Evaluation

    2. Use Object/Array Literals

    3. Don’t Repeat Work

    4. Use the Fast Parts

    5. Summary

  9. Chapter 9 Building and Deploying High-Performance JavaScript Applications

    1. Apache Ant

    2. Combining JavaScript Files

    3. Preprocessing JavaScript Files

    4. JavaScript Minification

    5. Buildtime Versus Runtime Build Processes

    6. JavaScript Compression

    7. Caching JavaScript Files

    8. Working Around Caching Issues

    9. Using a Content Delivery Network

    10. Deploying JavaScript Resources

    11. Agile JavaScript Build Process

    12. Summary

  10. Chapter 10 Tools

    1. JavaScript Profiling

    2. YUI Profiler

    3. Anonymous Functions

    4. Firebug

    5. Internet Explorer Developer Tools

    6. Safari Web Inspector

    7. Chrome Developer Tools

    8. Script Blocking

    9. Page Speed

    10. Fiddler

    11. YSlow

    12. dynaTrace Ajax Edition

    13. Summary

  1. Colophon

View Full Table of Contents
Product Details
Title:
High Performance JavaScript
By:
Nicholas C. Zakas
Publisher:
O'Reilly Media / Yahoo Press
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
March 2010
Ebook Release:
March 2010
Pages:
240
Print ISBN:
978-0-596-80279-0
| ISBN 10:
0-596-80279-X
Ebook ISBN:
978-1-4493-8315-2
| ISBN 10:
1-4493-8315-7
Customer Reviews
About the Author
  1. Nicholas C. Zakas

    Nicholas C. Zakas is a Web Software Engineer who specializes in user interface design and implementation for Web applications using JavaScript, Dynamic HTML, CSS, XML, and XSLT. He is currently principal front end engineer for the Yahoo! homepage and is a contributor to the Yahoo! User Interface (YUI) library, having written the Cookie Utility, Profiler, and YUI Test.



    Nicholas is the author of Professional JavaScript for Web Developers and a co-author on Professional Ajax, and has contributed to other books. He has also written several online articles for WebReference, Sitepoint, and the YUI Blog.



    Nicholas regularly gives talks about Web development, JavaScript, and best practices. He has given talks at companies such as Yahoo!, LinkedIn, Google, and NASA, and conferences such as the Ajax Experience, the Rich Web Experience, and Velocity.



    Through his writing and speaking, Nicholas seeks to teach others the valuable lessons he's learned while working on some of the most popular and demanding Web applications in the world.



    For more information on Nicholas: http://www.nczonline.net/about/

    View Nicholas C. Zakas's full profile page.

Colophon
The animal on the cover of High Performance JavaScript is a short-eared owl (Asio flammeus). As its name suggests, the bird's signature ear tufts are small and appear simply as ridges on the top of its large head. These tufts become more visible, however, when the owl feels threatened and enters a defensive pose. A medium-sized owl, the bird has yellow eyes, mottled brown plumage with a pale, streaked chest, and dark bars on its broad wings.

One of the world's most widespread avian species, this is a migratory bird that can be found on every continent except Australia and Antarctica. The short-eared owl lives in open country, such as prairies, marshland, or tundra. It catches small mammals like voles (and the occasional bird) either by flying low to the ground or by perching on a short tree, then diving on its prey. The owls are most active at dawn, late afternoon, and dusk.

The flight of the short-eared owl is frequently compared to that of a moth or bat, as it moves back and forth with slow, irregular wing beats. During breeding season, males exhibit spectacular aerial courtship displays in which they clap their wings together, rise in circles to great heights, and dive rapidly toward the ground. The short-eared owl is also somewhat of a thespian in the animal world-it will play dead to avoid detection, or feign a crippled wing to lure predators away from its nest.
  • Book cover of High Performance JavaScript