Tricks for optimising website download speed – part 1

In our last related post, we listed some tools for identifying which are files consuming more bandwidth for download. The post is at ” Tools for measuring website download / loading speed ” Hope, you have read this before.

In this post, we will list some tricks which will help to speed up the website loading speed.

1) Does your website supports gzip compression ?

gzip compression of all files sent over web, during download helps to speed up download speed considerably. First, please check weather your website already uses gzip compression using gidnetwork online tool. Type your website, and it will show whether or not web pages are compressed.

If your website doesnt support gzip compression, modify .htaccess to add following lines,

 

<IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent
</IfModule>

Reference : https://gtmetrix.com/enable-gzip-compression.html

READ  Bitbake packages compilation process

Now, you can again use gidnetwork tool for verifying gzip compression support.

In our next port we will check how to do image optimisation, so that actual website download speed is improved. Check the post “ Image Optimisations

Leave a Reply

Your email address will not be published. Required fields are marked *