Speed up your website with gzip compression

enable gzip compression

What is GZIP Compression

You need to enable GZIP compression on your website to reduce load time of your website. Sharp website development and aggressive search engine optimization (SEO) is vital for every website but adding heap of content takes it tool on your website’s viewership. Research shows that your website will leave your website if it made them more than 20 seconds. Modern website designs are incomplete without CSS, Java scripts, PHP and images but sometimes these things piles so much that they choke the bandwidth of the consumer and consumers leave your website disgruntled after your website loading lower than the speed of a snail.

Benefit of Enabling GZIP Compression

By enabling compression for your website, it’ll simply compress the items browser needs to download to load your website. It will reduce the webpage load by 50 to 70% and it will keep your customer or viewer keep stuck to your website.

How enable GZIP Compression?

If your website is running on apache webserver, you can enable compression for your website by just copying the following code and paste it in your .htaccess file (can be found in the www or public html directory of your website.

 

#Enable Compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/opentype
# For Olders Browsers Which Can't Handle Compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>

Give the code time of 2-3 hours to propagate itself and then check upon your website if it has enabled or not.If code given above doesn’t work out, remove the above code and add the code given below instead.

 

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

 

You can reach Waqas Yousaf through twitter @wiqi.
Share

Waqas Yousaf is Freelance Web Developer, Blogger, start-up manager and Co-Founder of wishdd.com.

Comments

  1. transoral robotic procedure Austin : February 12, 2018 at 2:00 pm

    Fastidious answers in return of this issue with genuine arguments and explaining everything about that.

  2. If you would like to obtain much from this post then you have
    to apply such methods to your won webpage.

  3. I do not even know how I ended up here, but I thought this post
    was good. I don’t know who you are but definitely you are going to a famous
    blogger if you are not already 😉 Cheers!

  4. Hey There. I discovered your blog the use of msn. This is a very well written article.
    I’ll be sure to bookmark it and return to learn extra
    of your useful info. Thank you for the post. I will certainly
    comeback.

  5. thefoundation : March 17, 2018 at 7:52 am

    Right now it looks like Expression Engine is the top
    blogging platform available right now. (from what I’ve
    read) Is that what you’re using on your blog?

  6. Hi! Do you use Twitter? I’d like to follow you if that would be
    ok. I’m absolutely enjoying your blog and look forward to new posts.

  7. storefront glass Modesto California : May 5, 2018 at 8:22 am

    This is a topic which is close to my heart…
    Cheers! Where are your contact details though?

  8. norvielcherry : June 2, 2018 at 6:46 am

    Very nice post. I just stumbled upon your blog and wished to say that I have truly enjoyed browsing your blog posts.
    After all I’ll be subscribing to your rss feed and I
    hope you write again very soon!

  9. Howdy! I know this is somewhat off topic but I was
    wondering which blog platform are you using for
    this site? I’m getting fed up of WordPress because I’ve had problems
    with hackers and I’m looking at options for another platform.
    I would be awesome if you could point me in the direction of a
    good platform.

  10. Hi colleagues, how is the whole thing, and what you would like to say on the topic of this article,
    in my view its genuinely remarkable in support of me.

  11. cosmologyathome : July 4, 2018 at 9:26 am

    I believe everything wrote made a ton of sense. However, consider this, what if you were to create a awesome
    post title? I mean, I don’t want to tell you how to run your blog,
    but suppose you added something that grabbed folk’s attention? I mean Speed up your
    website with gzip compression – WISHDD is a little plain. You should glance at
    Yahoo’s front page and see how they write news headlines to grab viewers to open the links.

    You might add a video or a picture or two to get people excited about everything’ve written. In my opinion, it might bring your website a little livelier.

  12. Blue Jays Baseball Jerseys : July 11, 2018 at 1:09 pm

    Great post. I’m experiencing some of these issues as well..

  13. hair salon austin tx : August 29, 2018 at 7:41 am

    My brother suggested I might like this website. He was entirely right.
    This post actually made my day. You cann’t imagine just how much time I had spent for this info!

    Thanks!

  14. Hey! Would you mind if I share your blog with my myspace group?
    There’s a lot of people that I think would really appreciate your content.

    Please let me know. Thank you

  15. Thank you for another informative site. Where else could I am getting that kind of info written in such a
    perfect manner? I have a mission that I am just now working on, and I have been at the
    glance out for such info.

  16. Great work! That is the type of information that are meant to
    be shared around the web. Disgrace on the seek
    engines for not positioning this post higher!

    Come on over and discuss with my web site . Thank you =)

  17. Definitely believe that that you stated. Your favorite reason seemed to be at the
    net the simplest thing to take note of. I say to you, I certainly get annoyed at the same time as other people think about issues that they plainly don’t understand about.
    You controlled to hit the nail upon the top as well as outlined out the entire thing with no
    need side effect , other people can take a signal.
    Will likely be back to get more. Thanks

  18. Hi there, You’ve done an excellent job. I’ll definitely digg
    it and personally recommend to my friends. I am confident they’ll be
    benefited from this site.

  19. Very quickly this website will be famous among all blogging and
    site-building people, due to it’s pleasant content

  20. Thanks very interesting blog!

  21. Nice blog right here! Also your site quite a bit up very fast!
    What host are you using? Can I am getting your affiliate hyperlink in your host?
    I want my website loaded up as quickly as yours lol

  22. Somebody necessarily assist to make seriously articles I might state.
    This is the first time I frequented your web page and to this point?
    I amazed with the research you made to make this particular publish incredible.
    Great activity!

Leave a Reply

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