Enable Compression for the Divi Theme

Site speed is an important topic these days with Google using the speed at which your site loads as a factor in determining how high to rank it in their search results. If you want a good ranking, a fast site is critical. Run your Divi Theme site through Google's PageSpeed Insights tool and you may be surprised to find that it's not as fast as it could be.

Unless you have already configured your site to do so, you may find, for instance, that your site falls short in a number of areas, including this one:

Enabling compression allows your site to shrink the download sizes of your web pages before sending them to the user, resulting in faster loading of your site.

Enabling Compression using Divi Booster

I've just added an option to Divi Booster to enable compression for Divi, so your site loads faster and should rank higher in Google as a result. You can find it under "General ยป Site Speed":

Once enabled, wait 30 seconds then test your site again with PageSpeed Insights and you should see that your site scores higher and tucked away under "passed rules" you'll see:

Technical Details

To manually configure your site to enable compression for Divi, you can add the following to your .htaccess file:

<ifmodule mod_deflate.c>
Addtype font/truetype .ttf
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css  application/xhtml+xml application/rss+xml application/x-javascript application/javascript text/javascript font/truetype

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin


  1. Are this conflict with gzip compression ?

    • Hi Andika, this actually is gzip compression. it enables the server's own gzip compression support, and shouldn't conflict with other methods of enabling it. Thanks!

      • Thanks for the reply.

        • You're welcome, Andika :)


Submit a Comment

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