How to enable GZIP Compression on Blogger/Blogspot?

How to Enable GZIP Compression on Blogger/Blogspot?

There are so many questions about how to increase loading speed from blogger or what is more familiar we often call Blogspot, one way is through GZIP Compressor.

What is Gzip Compression?

Gzip is an ultimate compression method to reduce the HTTP request size and thereby decreasing page load time. Gzip Compression is the compilation of files and codes from the server that will be sent to the browser, the compressed results are certainly much smaller in size than the files that are not compressed, and the smaller file size, the faster file transfer

How to Enable GZIP Compression on Blogger/Blogspot?

Gzip Compression for blogger will increase your blog speed upto 200%, Don't Believe on me!!! check the results from your own eyes.

How to Enable GZIP Compression on Blogger/Blogspot?Let's get started, So here are the few steps, Follow the below steps and increase your blogger speed.

1. Login to your Blogger Account.

2. Go to Theme > “Edit HTML”

3. Copy and Search(ctrl+F) below code —

 <!DOCTYPE html> 

5. Add this code before <!DOCTYPE html>, Just like below Image:

 <?php if (substr_ count($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip')) ob_start("ob_gzhandler");else ob_ start();?> 

Step 2 - Add this code before

6. Click “Save Theme”

7. Test your Blogger blog/website here: http://www.gidnetwork.com/tools/gzip-test.php

8. It's Done!!! You have successfully added the GZIP Compression in your Blogger/Blogspot.

READ MORE:

Related posts:

39 thoughts on “How to enable GZIP Compression on Blogger/Blogspot?”

  1. It appears that gzip is already enabled for some or all of Blooger’s templates. I am using a heavily modified verson of the newer Notable template. I tested the URL of my blog page with several online gzip testing sites and they all said gzip was enabled with a savings of 83 to 85%. If you attempt to paste the code into the Notable template and save it the code will be immediately removed by Blogger and your template saved. I am not sure if the above applies to other templates or just the newer mobile ready templates. Thanks for posting your article.

  2. Excellent information sir all videos and blogs are useful whether it is Table of content,Gzip compression, an E-commerce site video, every video is a guide for new bloggers.
    Thank you!

  3. Enjoyed reading the article above , really explains everything in detail,the article is very interesting and effective.Thank you and good luck for the upcoming articles??

  4. ‪Ramadan El- habib‬‏

    My brother after putting the code and then save. When I exit and go back to the html page, I can’t find the code

  5. You’re a talented blogger. I have joined your bolster and foresee searching for a more noteworthy measure of your amazing post. Also, I have shared your site in my casual networks!

  6. Code to dal diya par ye 16 % hi commpres ho paya hai
    Code ko dalne se pahle bhi ye gzip enable bata raha tha,kya mujhe koi code jo pahle se maujud hai use remove karna hoga
    Agar ha to use kaise identify karu
    Please help me mere blog ki speed bahut jyada down bata raha google page insight

    1. you dont need to add gzip comperssion in blogger is already doned by google for all blog platform, so just chill all, no need comperssion and if you want to check go on google type gzip comperssion checker and put your url and bingo see the result . thankyou

Leave a Comment

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

Are you human? Please solve:Captcha


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to our newsletter