Speed up your website using gZip compression. Huh, what’s that? Gzip is a method of compressing files (making them smaller) for faster network transfers. Compression allows your web server to provide smaller file sizes which load faster for your website users.

gZIP compression works for your images, CSS and JavaScript files. When using it, your web server will compress (like creating a ZIP file for example) this content before it’s transferred over the Internet to a user’s browser. The user’s browser then decompresses the content before rendering it. This significantly lowers the size of information that’s being transferred lowering the loading times of your pages. Voila! A faster loading site!

You can test your server to see if it is sending out compressed data by using this gZip tool: HTTP Compression Test

The easiest way to enable the gZIP compression for your images, CSS and JS files is to add these lines to your .htaccess file in the root WordPress folder:

## ENABLE GZIP COMPRESSION ##
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
## ENABLE GZIP COMPRESSION ##

CAUTION: Be careful when editing the .htaccess file. Mistakes here can take down your site! If unsure what to do, Just Call The WordPress Guy!

Share This