At Yahoo Developer network, they have found out 35 best practices to speed up your web site. You can find a resume here next, divided by categories.
Content
- Make Fewer HTTP Requests
- Reduce DNS Lookups
- Avoid Redirects
- Make Ajax Cacheable
- Postload Components
- Preload Components
- Reduce the Number of DOM Elements
- Split Components Across Domains
- Minimize Number of iframes
- Avoid 404s
Server
- Use a Content Delivery Network (CDN)
- Add Expires or Cache-Control Header
- Gzip Components
- Configure ETags
- Flush Buffer Early
- Use GET for Ajax Requests
- Avoid Empty Image src
Cookie
- Reduce Cookie Size
- Use Cookie-Free Domains for Components
CSS
- Put Stylesheets at Top
- Avoid CSS Expressions
- Choose <link> Over @import
- Avoid Filters
JavaScript
- Put Scripts at 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
- Do Not Scale Images in HTML
- Make favicon.ico Small and Cacheable
Mobile
- Keep Components Under 25 KB
- Pack Components Into a Multipart Document
You can read the full article.
Post new comment