June 24, 2013

Reduce Response Time To Make Page Load Faster Guide

|
This tip is for WordPress users who want to reduce resource usage and reduce page load time. To help to speed up your website or blog load times.

It has something to do with some technical stuff called gzip / mod_deflate. I am not going into all those technical details here.

Note: It should not be used on older server because it does not support gzip compression (mod_deflate)

This is what you need to do:

1. Copy this code below and add it to your .htaccess file.

*This post is for those who still don't know how to find your .htaccess file.

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Or, compress certain file types by extension:
<files *.html>
SetOutputFilter DEFLATE
</files>


<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</IfModule>


2. Click on "Save Changes".

Now test or verify your compression. Go to: http://www.whatsmyip.org/http-compression-test/

Type your site URL into the box and click "Test".

If it works, you should see a black box with a tick sign in a green circle and the remark besides which says: "(http://name of your site) is gzipped" also in green color.