Today I found a greate article for best practices for making web pages fast.The list includes 34 best practices divided into 7 categories.
1) Content
* Minimize 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
2) 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
3) CSS
* Put Stylesheets at the Top
* Avoid CSS Expressions
* Choose over @import
* Avoid Filters
4) 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
5) Cookie
* Reduce Cookie Size
* Use Cookie-free Domains for Components
6) Images
* Optimize Images
* Optimize CSS Sprites
* Don’t Scale Images in HTML
* Make favicon.ico Small and Cacheable
7) Mobile
* Keep Components under 25K
* Pack Components into a Multipart Document
For details check out this
1) Content
* Minimize 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
2) 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
3) CSS
* Put Stylesheets at the Top
* Avoid CSS Expressions
* Choose over @import
* Avoid Filters
4) 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
5) Cookie
* Reduce Cookie Size
* Use Cookie-free Domains for Components
6) Images
* Optimize Images
* Optimize CSS Sprites
* Don’t Scale Images in HTML
* Make favicon.ico Small and Cacheable
7) Mobile
* Keep Components under 25K
* Pack Components into a Multipart Document
For details check out this
No comments:
Post a Comment