CARVIEW |
Even Faster Web Sites
Performance Best Practices for Web Developers
- By
- Steve Souders
- Publisher:
- O'Reilly Media
- Released:
- June 2009
- Pages:
- 256
Performance is critical to the success of any web site. 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 and eight expert contributors provide best practices and pragmatic advice for improving your site's performance in three critical categories: JavaScript, in the network, and in the browser.
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.
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.
-
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

- Title:
- Even Faster Web Sites
- By:
- Steve Souders
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- June 2009
- Ebook Release:
- June 2009
- Pages:
- 256
- Print ISBN:
- 978-0-596-52230-8
- | ISBN 10:
- 0-596-52230-4
- Ebook ISBN:
- 978-0-596-80414-5
- | ISBN 10:
- 0-596-80414-8
-
Steve Souders
Steve Souders works at Google on web performance and open source initiatives. His book High Performance Web Sites explains his best practices for performance along with the research and real-world results behind them. Steve is the creator of YSlow, the performance analysis extension to Firebug. He is also co-chair of Velocity 2008, the first web performance conference sponsored by O'Reilly. He frequently speaks at such conferences as OSCON, Rich Web Experience, Web 2.0 Expo, and The Ajax Experience.
Steve previously worked at Yahoo! as the Chief Performance Yahoo!, where he blogged about web performance on Yahoo! Developer Network. He was named a Yahoo! Superstar. Steve worked on many of the platforms and products within the company, including running the development team for My Yahoo!. Prior to Yahoo! Steve worked at several small to mid-sized startups including two companies he co-founded, Helix Systems and CoolSync. He also worked at General Magic, WhoWhere?, and Lycos.
In the early 80's Steve caught the Artificial Intelligence bug and worked at a few companies doing research on Machine Learning, including several publications and conference appearances. He received a BS in Systems Engineering from the University of Virginia and a MS in Management Science and Engineering from Stanford University .
Steve's interests are varied. He sits on the board of Freehand Systems and Fremont Hills Country Club . He teaches Sunday School at First Lutheran Church in Palo Alto. He's played basketball with several NBA and WNBA players. He was a member of the Universal Studios Internet Task Force. He participated in setting a Guinness world record. He rebuilt a 90-year-old carriage house. He has a wonderful wife and three daughters.
The animal on the cover of Even Faster Web Sites is a blackbuck antelope (Antilope cervicapra), an endangered species found mainly in India, also known as the Indian antelope. The V-shaped horns of the male blackbuck are ringed with several spiral twists and can be as long as 28 inches. The male's upper body is black or dark brown, and its belly and the rings around its eyes are white. The female is light brown and does not normally have a horn. Blackbucks roam the plains in herds of 15 to 20, feeding on grasses, flowers, and fruits. On the open plain, the blackbuck is one of the fastest animals on earth, able to reach speeds of 45 mph and outrun most predators over long distances.
From the 18th through the early 20th centuries, the blackbuck antelope was the most hunted wild animal in India. In 1932, several species of Indian deer and antelope, including the blackbuck, were introduced to Texas for hunting and breeding. Today, these species live on private hunting ranches and roam the surrounding hill country.They are so plentiful-having multiplied to 19,000 throughout the state-that many have been shipped to India to repopulate the native habitat.
Now protected in India by the Wildlife Protection Act of 1972, the blackbuck population is steady at 50,000 native animals, plus 43,000 descended from Texas and other populations. Although poaching is still a problem and humans have encroached on its land, its protected status gained attention in 2006 when Indian film star Salman Khan was sentenced to five years in jail for killing two blackbucks. According to Hindu mythology, the blackbuck is considered to be the vehicle of the moon god, Chandrama, and is believed to bestow prosperity wherever it lives.
The cover image is from the Dover Pictorial Archive. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSansMonoCondensed.
![]() ©2010, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly
Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites
O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |