Boost Your Site Speed in 5 minutes

In this article, I'll unpack the steps I took to achieve a 99/100 on Google's PageSpeed Test with ClickBump 6 and a few quick tweaks to my site's htaccess file

In this article
  1. Introduction
  2. Editing The htaccess file
  3. Enable GZIP Compression

How to Enable GZIP Compression on your webserver via cpanel

Login to cPanel account for the user account which GZIP compression wants to be turned on. Then click on Optimize Website under Software / Services.

User will be presented with options to compress all content or compress the specified MIME types, with a text box to specify file types to compress is selected (default is text/html text/plain text/xml). Choose either one setting to enable GZIP compression on all websites hosted by the particular account. Click on Update Settings when done.

As you can see from the screenshot above, I’ve chosen these mime types to compress on clickbump.com:

text/html text/plain text/xml text/javascript text/css

Tip: Possible MIME types include text/html, text/plain, text/xml, text/css, text/javascript, application/javascript, application/xhtml+xml, application/xml, application/rss+xml, application/atom_xml, application/x-javascript, application/x-httpd-php, application/x-httpd-fastphp, application/x-httpd-eruby, and image/svg+xml.

Page 3 of 3 1 2 3

14 Responses to “Boost Your Site Speed in 5 minutes”

  1. Justin says:

    Hi Scott,

    I also have the cPanel Accelerated 2 version yet I do not see anything under optimize website. Any idea where I can locate this or make these same adjustments?

    • Who hosts your site? If hostgator or bluehost, you can hit their chat support and they should be able to help you set it up. You need to edit your htaccess file with the suggested settings above.

  2. Martoons says:

    Hi Scott,
    A programmer I know said there is a lot of difference (speed wise etc, even SEO) between shared hosting (like Bluehost etc) and VPS (virtual server I think that is).

    “On VPS, there will be limited numbers of virtual servers on a physical server. Usually less than 50. Each virtual server gets dedicated RAM, Processes cores, network port.”

    According to him “Google knows if you’re on a VPS or shared hosting. And they gives high priority user-friendly sites. Site that take minimum time to load will be more user friendly.”

    Anyway just food for thought. Surely we can get shared hosting just as fast. Good to know what you think. Thanks

    • Hi Martin, great to hear from you again.

      I think that makes sense, although I prefer shared hosting myself, because its basically plug and play. Dedicated hosting setups are usually self serve when it comes to configuration settings. I know that HostGator and Bluehost (to name a few) have their shared hosting accounts set up so that right out of the box, things just work right. However, most of the server/setup support issues I get come from VPN customers.

      This site should be testament to the fact that you can have fast sites on shared server setups. All of my sites are on shared servers and they run really fast, in large part due to the relatively simple speed optimization techniques we are talking about here.

  3. Martoons says:

    Hi Scott,
    Any idea how to do this using Bluehost? I can’t find anything in my cpanel under software/services > Optimize Site.

    There is the MIME thing and it has a huge list of options…
    Thoughts?
    Thanks
    Martin

  4. Andreas says:

    hi, just checked my site – which is actually built with weebly pro theme, with google tool, its 91 – and i did testing your site her, and it’s 91, too – not 99. what changed since your own test?

  5. Roshan says:

    Hi Scott,

    Thanks for reply. I updated as mentioned above. Then it started receiving server error as you mentioned above. Now restored backup.

    Steps Followed.
    01. Diable all the plugins
    02. edited .htaccess file as per above code (line 1 is option index)
    03. uploaded .htaccess file via ftp to public html folder
    04. tested the site
    05. received server error

    any advice

    Thanks
    ~ SB

  6. Roshab, it does not matter on line spacing. Just make sure to create a backup copy of the htaccess file beforehand.

  7. Roshan says:

    Hi Scott,

    There is also a smush.it plugin available to use

  8. Roshan says:

    Hi Scott,

    Do I have to add above code as 3 different blocks (giving single space for each code block) in my .htaccess file

    Kindly advice
    Roshan

  9. Warren says:

    Thanks for the smushit.com link, Scott.

    I’ve got my site up to 96. Mobile version to 93!

    Thanks!

    Warren

  10. Update (6/23/2012)
    Another tip to shave off several microseconds of loading time is to optimize images. To do that, i use Yahoo’s Smush.it optimizer. Its a free online tool and you can paste the URLs to several images at one and let it run. Once its done, you can download the optimized images and upload them to your site (overwriting the old ones).

    http://www.smushit.com/ysmush.it/

☝ Back to Top