Analyze Web page Performance with YSlow
The Yahoo! Developer Network has a strong voice within the Web development community largely due to great contributions of libraries and best practices. A recent contribution to community from Yahoo! is YSlow. YSlow is a FireFox add-on that analyzes web pages to tell you why they're slow, based on Yahoo! rules for high performance web sites. These Exceptional Performance guidelines come from theYahoo! Exceptional Performance team who evangelizes best practices for improving web performance. The Exceptional Performance site claims that YSlow “has helped improve the performance on over 50 Yahoo! properties by 25-50%”.
Running YSlow against your site will yield pretty graphs like this:
And most importantly will grade 13 categories on your site, give you an overall grade, and provide recommendations for categories with bad grades:
Notice that this site receives a performance grade of “D” based on Yahoo performance standards! If your site looks like this don’t feel bad, I noticed that the Exceptional Performance site also has a grade of “D”. Some of the rules are awful hard to conform to once your site infrastructure has already been built.
Here is the Yahoo! current list of rules for Exceptional Performance:
Content
- Make Fewer HTTP Requests
- Reduce DNS Lookups
- Avoid Redirects
- Make Ajax Cacheable
- Post-load Components
- Preload Components
- Reduce the Number of DOM Elements
- Split Components Across Domains
- Minimize the Number of iframes
- No 404s
Server
- Use a Content Delivery Network
- Add an Expires or a Cache-Control Header
- Gzip Components
- Configure ETags
- Flush the Buffer Early
- Use GET for AJAX Requests
Cookie
CSS
- Put Stylesheets at the Top
- Avoid CSS Expressions
- Make JavaScript and CSS External
- Minify JavaScript and CSS
- Choose <link> over @import
- Avoid Filters
JavaScript
- Put Scripts at the Bottom
- Make JavaScript and CSS External
- Minify JavaScript and CSS
- Remove Duplicate Scripts
- Minimize DOM Access
- Develop Smart Event Handlers
Images
- Optimize Images
- Optimize CSS Sprites
- Don't Scale Images in HTML
- Make favicon.ico Small and Cacheable
Mobile
That’s quite a list of rules! If these rules find issues for your site but they require some serious changes, just keep in mind the possibility of a 25%-50% increase in performance. Put this tool in your Web testing toolbox, it will find performance defects for you.

