Publisher: O'Reilly Media Released: September 2007 Pages: 170
Want your web site to display more quickly? This book presents 14 specific rules that will cut 25% to 50% off response time when users request a page. Author Steve Souders, in his job as Chief Performance Yahoo!, collected these best practices while optimizing some of the most-visited pages on the Web. Even sites that had already been highly optimized, such as Yahoo! Search and the Yahoo! Front Page, were able to benefit from these surprisingly simple performance guidelines. The rules in High Performance Web Sites explain how you can optimize the performance of the Ajax, CSS, JavaScript, Flash, and images that you've already built into your site -- adjustments that are critical for any rich web application. Other sources of information pay a lot of attention to tuning web servers, databases, and hardware, but the bulk of display time is taken up on the browser side and by the communication between server and browser. High Performance Web Sites covers every aspect of that process. Each performance rule is supported by specific examples, and code snippets are available on the book's companion web site. The rules include how to: - Make Fewer HTTP Requests
- Use a Content Delivery Network
- Add an Expires Header
- Gzip Components
- Put Stylesheets at the Top
- Put Scripts at the Bottom
- Avoid CSS Expressions
- Make JavaScript and CSS External
- Reduce DNS Lookups
- Minify JavaScript
- Avoid Redirects
- Remove Duplicates Scripts
- Configure ETags
- Make Ajax Cacheable
If you're building pages for high traffic destinations and want to optimize the experience of users visiting your site, this book is indispensable. "If everyone would implement just 20% of Steve's guidelines, the Web would be adramatically better place. Between this book and Steve's YSlow extension, there's reallyno excuse for having a sluggish web site anymore." -Joe Hewitt, Developer of Firebug debugger and Mozilla's DOM Inspector "Steve Souders has done a fantastic job of distilling a massive, semi-arcane art down to a set of concise, actionable, pragmatic engineering steps that will change the world of web performance." -Eric Lawrence, Developer of the Fiddler Web Debugger, Microsoft Corporation |
-
Chapter 1 The Importance of Frontend Performance -
Tracking Web Page Performance -
Where Does the Time Go? -
The Performance Golden Rule -
Chapter 2 HTTP Overview -
Compression -
Conditional GET Requests -
Expires -
Keep-Alive -
There's More -
Chapter 3 Rule 1: Make Fewer HTTP Requests -
Image Maps -
CSS Sprites -
Inline Images -
Combined Scripts and Stylesheets -
Conclusion -
Chapter 4 Rule 2: Use a Content Delivery Network -
Content Delivery Networks -
The Savings -
Chapter 5 Rule 3: Add an Expires Header -
Expires Header -
Max-Age and mod_expires -
Empty Cache vs. Primed Cache -
More Than Just Images -
Revving Filenames -
Examples -
Chapter 6 Rule 4: Gzip Components -
How Compression Works -
What to Compress -
The Savings -
Configuration -
Proxy Caching -
Edge Cases -
Gzip in Action -
Chapter 7 Rule 5: Put Stylesheets at the Top -
Progressive Rendering -
sleep.cgi -
Blank White Screen -
Flash of Unstyled Content -
What's a Frontend Engineer to Do? -
Chapter 8 Rule 6: Put Scripts at the Bottom -
Problems with Scripts -
Parallel Downloads -
Scripts Block Downloads -
Worst Case: Scripts at the Top -
Best Case: Scripts at the Bottom -
Putting It in Perspective -
Chapter 9 Rule 7: Avoid CSS Expressions -
Updating Expressions -
Working Around the Problem -
Conclusion -
Chapter 10 Rule 8: Make JavaScript and CSS External -
Inline vs. External -
Typical Results in the Field -
Home Pages -
The Best of Both Worlds -
Chapter 11 Rule 9: Reduce DNS Lookups -
DNS Caching and TTLs -
The Browser's Perspective -
Reducing DNS Lookups -
Chapter 12 Rule 10: Minify JavaScript -
Minification -
Obfuscation -
The Savings -
Examples -
Icing on the Cake -
Chapter 13 Rule 11: Avoid Redirects -
Types of Redirects -
How Redirects Hurt Performance -
Alternatives to Redirects -
Chapter 14 Rule 12: Remove Duplicate Scripts -
Duplicate Scripts—They Happen -
Duplicate Scripts Hurt Performance -
Avoiding Duplicate Scripts -
Chapter 15 Rule 13: Configure ETags -
What's an ETag? -
The Problem with ETags -
ETags: Use 'Em or Lose 'Em -
ETags in the Real World -
Chapter 16 Rule 14: Make Ajax Cacheable -
Web 2.0, DHTML, and Ajax -
Asynchronous = Instantaneous? -
Optimizing Ajax Requests -
Caching Ajax in the Real World -
Chapter 17 Deconstructing 10 Top Sites -
Page Weight, Response Time, YSlow Grade -
How the Tests Were Done -
Amazon -
AOL -
CNN -
eBay -
Google -
MSN -
MySpace -
Wikipedia -
Yahoo! -
YouTube -
Colophon |
- Title:
- High Performance Web Sites
- By:
- Steve Souders
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- September 2007
- Ebook:
- December 2008
- Pages:
- 170
- Print ISBN:
- 978-0-596-52930-7
- | ISBN 10:
- 0-596-52930-9
- Ebook ISBN:
- 978-0-596-15876-7
- | ISBN 10:
- 0-596-15876-9
|
-
Steve Souders Steve Souders works at Google on web performance and open source initiatives. His books High Performance Web Sites and Even Faster Web Sites explain 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 with more than 1 million downloads. He serves as co-chair of Velocity, the web performance and operations conference sponsored by O'Reilly. Steve taught CS193H: High Performance Web Sites at Stanford, and 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. View Steve Souders's full profile page. |
Colophon The animal on the cover of High Performance Web Sites is a greyhound. The fastest dog in the world, a greyhound can reach speeds of up to 45 miles per hour, enabled by its streamlined, narrow body; large lungs, heart, and muscles; double suspension gallop (two periods of a gait when all four feet are off the ground); and the flexibility of its spine. Although greyhounds are incredibly fast, they are actually low-energy dogs and lack endurance, requiring less exercise time than most dogs. For this reason, they're often referred to as "45-mile-per-hour couch potatoes" because when not chasing smaller prey (such as rabbits and cats), they are content to spend their days sleeping. Greyhounds are one of the oldest breeds of dogs, appearing in art and literature throughout history. In ancient Egypt, greyhounds were often mummified and buried with their owners, and hieroglyphics from 4000 B.C.E. show a dog closely resembling the modern greyhound. In Greek and Roman mythology, greyhounds were often depicted with gods and goddesses. Greyhounds appeared in the writings of Homer, Chaucer, Shakespeare, and Cervantes, and they are the only type of dog mentioned in the Bible. They've long been appreciated for their intelligence, graceful form, athleticism, and loyalty. During the early 1920s, modern greyhound racing was introduced into the United States. Smaller and lighter than show greyhounds, track greyhounds are selectively bred and usually stand between 25- 29 inches tall and weigh 60 70 pounds. These dogs instinctively chase anything that moves quickly (as they are sighthounds, not bloodhounds), hence the lure--the mechanical hare they chase around the track. Greyhound racing is still a very popular spectator sport in the United States and, like horse racing, is enjoyed as a form of parimutuel gambling. Greyhound racing is very controversial as the dogs experience little human contact and spend most of their non-racing time in crates. Once greyhounds are too old to race (somewhere between three and five years of age), many are euthanized, though there are now many rescue programs that find homes for retired racers. Because greyhounds are naturally docile and even-tempered, most adjust well to adoption and make wonderful pets. The cover image is from Cassell's Natural History. 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 TheSans Mono Condensed.The production editors for Book Title, eMatter Edition were Ellie Cutler and Jeff Liggett. Linda Walsh was the product manager. Kathleen Wilson provided design support. Lenny Muellner, Mike Sierra, Erik Ray, and Benn Salter provided technical support. This eMatter Edition was produced with FrameMaker 5.5.6. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Taran Rampersad
May 2007
By Jeff Webb
September 2007
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
By Dorothy Hoskins
June 2007
|
Customer Reviews
12/7/2008 (4 of 4 customers found this review helpful) 5.0It's very difficult to find any fluff at all By Edmonton Linux Users Group from Edmonton 4/20/2008 (1 of 1 customers found this review helpful) By Ahmed Hashim from Undisclosed 11/26/2007 (1 of 1 customers found this review helpful) 4.0Bang (and Performance) for your Buck By joshSVUG from Undisclosed 10/31/2007 5.0Excellent, Concise Guide By Justin Pease from Undisclosed 10/31/2007 (1 of 4 customers found this review helpful) 5.0Just do a Google search By Anonymous from Undisclosed By Jen B. from Undisclosed 10/3/2007 5.0Well organized tips and tricks on web site performance By jdruin from Undisclosed By Anonymous from Undisclosed By Anonymous from Undisclosed
|
|
|