Welcome to another interesting article on blogger. If you are searching the tutorial for how to enable Gzip compression on Blogger then, here you will find answers to your queries.
In this article we will discuss about step by step guide to enable Gzip compression on Blogger or blogspot. But at first, let's know some basics related to Gzip compression.
What is Gzip compression?
Gzip is a compression method which is used by bloggers to increase the loading speed in blogger. Gzip compression method is used to compress the request size of HTTP and which results in decreased page loading time. Bloggers uses Gzip compression to compress different types of text files like CSS, JavaScript and HTML, etc.
Now, let's discuss about how to enable Gzip compression on Blogger.
How to Enable/Implement Gzip compression on Blogger
Here, we will discuss step by step guide to enable Gzip compression on Blogger;
1. Go to Blogger site and Sign-in with your Google account.
2. In the left side, click on Themes > Edit HTML
3. Then, add the following code before tag;
<?php if (substr_ count($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip'))ob_start("ob_gzhandler");else ob_ start();?>
4. Now just click on to enable Gzip compression on Blogger website.
Conclusion
Above we have discussed the tutorial for how to enable Gzip compression on Blogger. Gzip is a compression method which is used by bloggers to increase the loading speed in blogger. Gzip compression method is used to compress the request size of HTTP and which results in decreased page loading time. By following above mentioned steps you can easily enable Gzip compression on Blogger.