Home > Web development > Improve website performance

Improve website performance


  1. JavaScript Optimization
    • Place javascript at the bottom of the html.
    • Use Minify JavaScript
    • Alway write JavaScript in external file
    • Try to reduce number of JavaScript files.
  2. CSS Optimization
    • Place CSS at the top of html
    • Use Minify Css
    • Alway write css in external file.
    • Try to reduce number of css files.
  3. SERVER Optimization
    • Alway enable gzip/bzip2 compression.
  4. HTTACCESS
    • Use this code in .htaccess filemod_gzip_on Yesmod_gzip_dechunk Yes
      mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
      mod_gzip_item_include handler ^cgi-script$
      mod_gzip_item_include mime ^text/.*
      mod_gzip_item_include mime ^application/x-javascript.*
      mod_gzip_item_exclude mime ^image/.*
      mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
Advertisements
  1. July 18, 2012 at 4:59 pm

    great post

  2. varindiamagazine
    July 19, 2012 at 1:52 pm

    Useful information on website loading performance. Thanks for sharing the information. Useful blog for website development. My suggestion about blog is that its been since 2009, I feel difficult in navigation. Categorization and cloud tag is there but need some modification for better navigation/ find an info. or if anybody wants to know what info is here(may be for future ref.).

  3. April 10, 2013 at 3:57 am

    HI
    Please make correction in this line “Place javascript at the bottom of the html.”. It is best practice to add in head area.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: