Even Faster Web Sites
Subtitle: Performance Best Practices for Web Developers
Publisher: O'Reilly Media, Inc.
Published: 2009
Place of publication: Sebastopol
Language: eng
Format: [electronic resource] :
Number of pages: 256
ISBN-13: 9780596555849
Subjects: JavaScript (Computer program language); Web sites; Web site development; Asynchronous transfer mode; Engineering; Design; Computer science; Electrical engineering
Description: Performance is critical to the success of any web site, and yet today's web applications push browsers to their limits with increasing amounts of rich content and heavy use of Ajax. In this book, Steve Souders, web performance evangelist at Google and former Chief Performance Yahoo!, provides valuable techniques to help you optimize your site's performance. Souders' previous book, the bestselling High Performance Web Sites, shocked the web development world by revealing that 80% of the time it takes for a web page to load is on the client side. In Even Faster Web Sites, Souders and eight expert.
Notes: Strip attribute quotes.

Description based on print version record.
Table of contents: title: Table of Contents; Credits; Preface; How This Book Is Organized; JavaScript Performance; Network Performance; Browser Performance; Conventions Used in This Book; Comments and Questions; Using Code Examples; Safari® Books Online; Acknowledgments; Chapter 1. Understanding Ajax Performance; Trade-offs; Principles of Optimization; Ajax; Browser; Wow!; JavaScript; Summary; Chapter 2. Creating Responsive Web Applications; What Is Fast Enough?; Measuring Latency; When Latency Goes Bad; Threading; Ensuring Responsiveness; Web Workers; Gears; Timers; Effects of Memory Use on Response Time.; title: Virtual MemoryTroubleshooting Memory Issues; Summary; Chapter 3. Splitting the Initial Payload; Kitchen Sink; Savings from Splitting; Finding the Split; Undefined Symbols and Race Conditions; Case Study: Google Calendar; Chapter 4. Loading Scripts Without Blocking; Scripts Block; Making Scripts Play Nice; XHR Eval; XHR Injection; Script in Iframe; Script DOM Element; Script Defer; document.write Script Tag; Browser Busy Indicators; Ensuring (or Avoiding) Ordered Execution; Summarizing the Results; And the Winner Is; Chapter 5. Coupling Asynchronous Scripts; Code Example: menu.js.; title: Race ConditionsPreserving Order Asynchronously; Technique 1: Hardcoded Callback; Technique 2: Window Onload; Technique 3: Timer; Technique 4: Script Onload; Technique 5: Degrading Script Tags; Multiple External Scripts; Managed XHR; DOM Element and Doc Write; General Solution; Single Script; Multiple Scripts; Asynchronicity in the Real World; Google Analytics and Dojo; YUI Loader Utility; Chapter 6. Positioning Inline Scripts; Inline Scripts Block; Move Inline Scripts to the Bottom; Initiate Execution Asynchronously; Use Script Defer; Preserving CSS and JavaScript Order.; title: Danger: Stylesheet Followed by Inline ScriptInline Scripts Aren't Blocked by Most Downloads; Inline Scripts Are Blocked by Stylesheets; This Does Happen; Chapter 7. Writing Efficient JavaScript; Managing Scope; Use Local Variables; Scope Chain Augmentation; Efficient Data Access; Flow Control; Fast Conditionals; The if statement; The switch statement; Another option: Array lookup; The fastest conditionals; Fast Loops; Simple loop performance boosts; Avoid the for-in loop; Unrolling loops; String Optimization; String Concatenation; Trimming Strings; Avoid Long-Running Scripts.; title: Yielding Using TimersTimer Patterns for Yielding; Summary; Chapter 8. Scaling with Comet; How Comet Works; Transport Techniques; Polling; Long Polling; Forever Frame; XHR Streaming; Future Transports; Cross-Domain; Effects of Implementation on Applications; Managing Connections; Measuring Performance; Protocols; Summary; Chapter 9. Going Beyond Gzipping; Why Does This Matter?; What Causes This?; Quick Review; The Culprit; Examples of Popular Turtle Tappers; How to Help These Users?; Design to Minimize Uncompressed Size; Use event delegation; Use relative URLs; Strip whitespace.