Friday 21 May 2010

How to Speed Up Web Site?

There are the following steps through which you can speed up you web site:


  • Minimize HTTP Requests
  • Add an Expires or a Cache-Control Header
  • Gzip Components
  • Put Stylesheets at the Top
  • Put Scripts at the Bottom
  • Avoid CSS Expressions
  • Make JavaScript and CSS External
  • Minify JavaScript and CSS
  • Avoid Redirects
  • Remove Duplicate Scripts
  • Make Ajax Cacheable
  • Flush the Buffer Early
  • Make favicon small and cacheable
  • Use GET for AJAX Requests

  • Reduce the Number of DOM Elements

     

           The number of DOM elements is easy to test, just type in Firebug's console:    

           document.getElementsByTagName('*').length 

Cheers!

No comments:

Post a Comment