Reduce page size wordpress hosting

Posted by Stephane Brault on Jul 17, 2013 | 1 Comment

GZip compression is a powerful tool for reducing loading times, and it works by decreasing the size of the files sent from your server.

Hopefully, if you’re reading this, you understand how important it is to reduce loading times, and how much improvement it can make in your site’s image. In fact, it’s been shown in various credibility studies that fast loading times are one of the highest factors in affecting a site’s perception of credibility.

hosting

That’s why we’re going to discuss GZip compression and how to enable it, either by using htaccess or cPanel.

The Basics of GZip

GZip uses an extremely simple compression method to reduce page sizes. It simply locates strings of text in a file that are similar to each other, and replaces them with a placeholder — the whole process can reduce overall file size by up to 70%.

GZip works so well because scripting files like CSS and HTML tend to repeat a lot of their tags over and over again, adding unnecessary size to the files being sent over.

Enabling Compression Using the .htaccess File

One way to enable GZip is to open the .htaccess file and insert some code to direct it to compress certain tags in the file.

The following code is effective for enabling compression and can be inserted directly into the file at any location, preferably at the beginning of the file.

After inserting this code, simply save your file and reload a page to test. Compress should now be enabled.

Enabling GZip Using CPanel

If you’d rather not modify your .htaccess file, or if you just happen to be using CPanel and you’d like to know an easier way to change the GZip settings on your pages, you can follow the instructions below.

  1. From the Home page of cPanel, look for a link that says Software/Services. Click that link.
  2. After being redirected to the following page, look for a link that says Optimize Website. Click that link.
  3. On this page, you can disable or enable compression of your site’s content. Simply select the Disabled option or the Compress all content option.
  4. Click Update Settings .

You can also choose to compress only certain types of content using the Compress the specified MIME types option. Just enter the media types you’d like to compress in the text box and click Update Settings. If you’re not sure how to specify which types you want to compress, look for more information at this Wikipedia page .

It’s worth noting that you shouldn’t add image types to this field because image files are already compressed.

Reduce page size wordpress hosting because image

Conclusion

Regardless of which option you choose, you’ll definitely be able to reduce bandwidth usage and save your visitors time on your website.

The only last concern you may want to consider is whether you have high numbers of visitors, as the extra time that your server spends compressing these files can really add up on the server side. If you’re serving fewer than thousands of visitors a day, however, it won’t be a problem, and you can simply use GZip compression to save your visitors time.

If you want to see the impacts of enabling GZip compression for your website, you can take the website speed test before and after.

Enter its URL below to find out now:

About the Author

Stéphane Brault is a web developer and system administrator with over 22 years of experience. Specialized in PHP programming and Linux server administration, he also provided web development and consulting services to SMBs for several years before becoming an online entrepreneur.

Watch this video!

Related articles

Reduce page width wordpress hostingDo you want to speed up your WordPress site? Want to know the WordPress optimization tricks that can help you reduce your site load time? In this article, we will show you how to speed up...
Tutorial seo on page wordpress hostingThe Complete WordPress & 000webhost Guide (2017) WordPress definitely doesn’t require any formal introduction, since it's the most popular blogging platform that quickly made a place of its own...
Blank page install.php wordpress hostingWe've had a lot of our customers and WordPress users in general have an issue where their site is showing a blank page. This blank page is typically caused by a PHP error. If you have your...
Admin page slow wordpress hostingAsked: 2014-07-25 11:58 am EST Navigating around the WordPress admin site is extremely slow. No matter what page I go to or menu I click on, it takes 8-10 sec to load the page. Doesn't matter...
Best hosting for wordpress e-commerce tutorialHome » Ecommerce Resources » How to Create a Fantastic Online Shop with WooCommerce, Divi and Bluehost (March 2017) Over 74 million sites depend on the WordPress platform to host their blogs,...