Publisher: O'Reilly Media / Yahoo Press Released: March 2010 Pages: 240
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
|
-
Chapter 1 Loading and Execution -
Script Positioning -
Grouping Scripts -
Nonblocking Scripts -
Summary -
Chapter 2 Data Access -
Managing Scope -
Object Members -
Summary -
Chapter 3 DOM Scripting -
DOM in the Browser World -
DOM Access and Modification -
Repaints and Reflows -
Event Delegation -
Summary -
Chapter 4 Algorithms and Flow Control -
Loops -
Conditionals -
Recursion -
Summary -
Chapter 5 Strings and Regular Expressions -
String Concatenation -
Regular Expression Optimization -
String Trimming -
Summary -
Chapter 6 Responsive Interfaces -
The Browser UI Thread -
Yielding with Timers -
Web Workers -
Summary -
Chapter 7 Ajax -
Data Transmission -
Data Formats -
Ajax Performance Guidelines -
Summary -
Chapter 8 Programming Practices -
Avoid Double Evaluation -
Use Object/Array Literals -
Don’t Repeat Work -
Use the Fast Parts -
Summary -
Chapter 9 Building and Deploying High-Performance JavaScript Applications -
Apache Ant -
Combining JavaScript Files -
Preprocessing JavaScript Files -
JavaScript Minification -
Buildtime Versus Runtime Build Processes -
JavaScript Compression -
Caching JavaScript Files -
Working Around Caching Issues -
Using a Content Delivery Network -
Deploying JavaScript Resources -
Agile JavaScript Build Process -
Summary -
Chapter 10 Tools -
JavaScript Profiling -
YUI Profiler -
Anonymous Functions -
Firebug -
Internet Explorer Developer Tools -
Safari Web Inspector -
Chrome Developer Tools -
Script Blocking -
Page Speed -
Fiddler -
YSlow -
dynaTrace Ajax Edition -
Summary -
Colophon |
- Title:
- High Performance JavaScript
- By:
- Nicholas C. Zakas
- Publisher:
- O'Reilly Media / Yahoo Press
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- March 2010
- Ebook:
- 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
|
-
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. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Mikkel Aaland
March 2006
Ebook: $27.99
Print & Ebook: $38.49
Print: $34.99
By Dean Wampler, Alex Payne
September 2009
Ebook: $35.99
Print & Ebook: $49.49
Print: $44.99
By Dave Hoover, Adewale Oshineye
October 2009
Ebook: $23.99
Print & Ebook: $32.99
Print: $29.99
|
Customer Reviews
9/2/2010 (1 of 1 customers found this review helpful) By foxxtrot from Pullman, WA About Me Developer, Maker - Accurate
- Easy to understand
5/1/2010 (3 of 3 customers found this review helpful) 5.0Practical, Solid Tips For Fast Web Pages - Easy to understand
- Helpful examples
- Well-written
- Intermediate
- Novice
- Student
|
|
|