How to Speed Up Your WordPress Site: Part 5 – Gzip Compression
We’ve discussed various great ways to speed up WordPress sites, including:
There’s one more tool in the WordPress treasure chest: Gzip compression, which compresses large files that can take too much time to download to a user’s computer or mobile device. It is also known as HTTP or browser compression.
Gzip let’s you compress files served from the server to the user
Gzip Isn’t Quite Like ZIP
Of course you’re familiar with the concept of zipping, or compressing files into a single one that can easily emailed or shared on a flash drive. The software that zips files first archives, and then compresses the files. The recipient can then decompress (or unzip) the single file and find a bunch of others inside it, all individually archived and preserved.
Gzip doesn’t archive files; it only compresses them. It’s used for larger files or very large numbers of files that would greatly slow down a “regular” zip because of that archiving step. To see any original file in a Gzip file, you have to decompress the entire file.
In other words, if you have 10 very large files (let’s say it’s graphics and video in your WordPress media), it will take longer to zip and unzip than to compress them into a single Gzip and decompress it. The zip file will also be much larger than the Gzip, since it’s archived each of those 10 files.
WordPress Gzip Compression With Plugin
The most common place to find a Gzip is through WordPress plugins like W3 Total Cache. Once you’ve installed the plugin, go into the Performance tab and look for Browser Cache. Tick the box next to “Enable HTTP (Gzip) compression”
There are also Gzip plugins available such as Tribulant’s WordPress Gzip Compression, which is free.
If you enjoy working directly in WordPress’ editor functions, you can also add lines to the .htaccess file. Here are instructions to do this.
If you don’t have a .htaccess file, you can create it this way using your notepad. Or, you can ask your WordPress host to make one for you. It’s likely that there is one lurking in your WordPress installation root files.
Gzip Helps Speed Up Your Website
Although graphics files do take up a lot of space on your website, so does you content. And while there are tons of WordPress plugins that optimise image size, content is often overlooked.
Are you interested in learning more about useful WordPress functions, plugins, and plugin extensions? Subscribe to our newsletter at right to get a promo code and 10% off any Tribulant plugin.