Even Faster Websites - Performance Best Practices for Web Developers
Verlag | O'Reilly Media |
Auflage | 2009 |
Seiten | 231 |
Format | 23,3 cm |
Gewicht | 424 g |
Artikeltyp | Englisches Buch |
ISBN-10 | 0596522304 |
EAN | 9780596522308 |
Bestell-Nr | 59652230EA |
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 contributors provide best practices and pragmatic advice for improving your site's performance in three critical categories:
JavaScript - Get advice for understanding Ajax performance, writing efficient JavaScript, creating responsive applications, loading scripts without blocking other components, and more. Network - Learn to share resources across multiple domains, reduce image size without loss of quality, and use chunked encoding to render pages faster. Browser - Discover alternatives to iframes, how to simplify CSS selectors, and other techniques.
Speed is essential for today's rich media web sites and Web 2.0 applications. With this book, you'll learn how to shave precious seconds off your sites' load times and make them respond even faster.
This book contains six guest chapters contributed by Dion Almaer, Doug Crockford, Ben Galbraith, Tony Gentilcore, Dylan Schiemann, Stoyan Stefanov, Nicole Sullivan, and Nicholas C. Zakas.
Inhaltsverzeichnis:
Inhaltsverzeichnis
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
Threading
Ensuring Responsiveness
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
Browser Busy Indicators
Ensuring (or Avoiding) Ordered Execution
Summarizing the Results
And the Winner Is
Chapter 5 Coupling Asynchronous Scripts
Code Example: menu.js
Race Conditions
Preserving Order Asynchronously
Multiple External Scripts
General Solution
Asynchronicity in the Real World
Chapter 6 Positioning Inline Scripts
Inline Scripts Block
Preserving CSS and JavaScript Order
Danger: Stylesheet Followed by Inline Script
Chapter 7 Writing Efficient JavaScript
Managing Scope
Efficient Data Access
Flow Control
String Optimization
Avoid Long-Running Scripts
Summary
Chapter 8 Scaling with Comet
How Comet Works
Transport Techniques
Cross-Domain
Effects of Implementation on Applications
Summary
Chapter 9 Going Beyond Gzipping
Why Does This Matter?
What Causes This?
How to Help These Users?
Chapter 10 Optimizing Images
Two Steps to Simplify Image Optimization
Image Formats
Automated Lossless Image Optimization
Alpha Transparency: Avoid AlphaImageLoader
Optimizing Sprites
Other Image Optimizations
Summary
Chapter 11 Sharding Dominant Domains
Critical Path
Who s Sharding?
Downgrading to HTTP/1.0
Rolling Out Sharding
Chapter 12 Flushing the Document Early
Flush the Head
Output Buffering
Chunked Encoding
Flushing and Gzip
Other Intermediaries
Domain Blocking During Flushing
Browsers: The Last Hurdle
Flushing Beyond PHP
The Flush Checklist
Chapter 13 Using Iframes Sparingly
The Most Expensive DOM Element
Iframes Block Onload
Parallel Downloads with Iframes
Connections per Hostname
Summarizing the Cost of Iframes
Chapter 14 Simplifying CSS Selectors
Types of Selectors
The Key to Efficient CSS Selectors
CSS Selector Performance
Measuring CSS Selectors in the Real World Appendix Performance Tools
Packet Sniffers
Web Development Tools
Performance Analyzers
Miscellaneous
Colophon