Home   Best Sellers   Blogging   Coding & Design   Technology   SEO   Travel & living   Career   Videos   Tips   Calculators     
Home  »     »     »  How to reduce your web page size? How to enable GZIP compression on your website?

How to reduce your web page size? How to enable GZIP compression on your website?

Tuesday, October 10, 2017

Reducing Your web page size will improve the page load time. Thanks to GZIP, the software application developed by Jean-loup Gailly and Mark Adler , when installed on server will significantly reduce the page size.

You can check whether GZIP is enabled on your server by checking your web page on checkgzipcompression.com.
Sometimes even though there is GZIP installed in your server, your website might not be using it. Enabling GZIP Compression can reduce page size by 70% and speed up the page loading for users.

If it is Apache webserver, add following script in .htaccess of your website to invoke GZIP compression.



<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_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.*
</ifModule>



After uploading the .htaccess file, do a GZIP compression test by clicking here or by loading https://varvy.com/tools/gzip/

If this did not work, then try following code instead and do the GZIP test again.

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

GZIP compression is highly recommended action for SEO optimised landing pages. Quick loading of pages is one among the criteria for perfectly optimised pages.

References:
  1. Wiki Page for GZIP : https://en.wikipedia.org/wiki/Gzip
  2. https://checkgzipcompression.com
  3. https://varvy.com/pagespeed/enable-compression.html
  4. https://varvy.com/tools/gzip/



How to link to this page?
If you wish to link to this page from your website, simply Copy and paste the above HTML code to your web page. It will appear on your page as:
How to reduce your web page size? How to enable GZIP compression on your website?.




Share this!




comments powered by Disqus

This Weeks 7 Popular Posts


Subscribe to Recent Posts by Email
Stay connected to CROZOOM with regular Email notices of new Techie articles and IT Jobs. Updates will be delivered to your Inbox as soon as they are posted online.

Enter Your Email Address:  

Delivered by FeedBurner   RSS Feed

Search this Blog   



Urgent Openings for PHP trainees, Andriod / IOS developers and PHP developers in Kochi Trivandrum Calicut and Bangalore. Please Send Your updated resumes to recruit.vo@gmail.com   Read more »