Latest Plug-in
Latest Theme
Coming Soon!
  • Grove Wedding Theme
  • Grove Wedding Theme

    Grove is a Premium Wedding WordPress theme and will be avaiable late 2017. Demo Coming Soon!

Knowledge Base : Site Speed Optimization...

Site Speed Optimization

← Return To Knowledge Base

WordPress can be a dreadfully slow CMS – anyone who works with WordPress or any CMS system can tell you that. The more code you pack into a theme and the more plug-ins you load will only make things worse. But there are ways to increase the speed of your site by leveraging certain server side compression methods. In this article we will explain how to implement three sever side compression techniques that should increase your page load time and your overall page score by up to 40% with GTMetrix.

Enable Keep-Alive

Enabling keep-alive basically tells the browser of your visitors to establish a TCP connection once instead of multiple times to request all your website’s files (like images, CSS scripts, Javascripts, etc..). This speeds up your website because the browser of your visitor needs to open just one persistent HTTP connection instead of having to establish multiple connections for every single file loaded by your web page.

The code below should be added to your .htaccess to enable a keep-alive connection:

<ifModule mod_headers.c>
    Header set Connection keep-alive

GZIP Compression

There are several benefits to enable Gzip compression because it’s the most popular method to load your site faster by reducing more than 70% page size of your blog. However, now-a-days most of the sites are using Gzip compression across the web. Gzip will load your site in just a few seconds.

You can enable Gzip compression by adding the following code to your .htaccess file:

# compress text, html, javascript, css, xml:
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
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png
Browser Caching

Every time a browser loads a webpage it has to download all the web files to properly display the page. This includes all the HTML, CSS, javascript and images. Browser caching can help by storing some of these files locally in the user’s browser. Their first visit to your site will take the same time to load, however when that user revisits your website, refreshes the page, or even moves to a different page of your site, they already have some of the files they need locally.

You can enable browser caching by adding the following code to your .htaccess file:

 ExpiresActive On
 ExpiresByType image/jpg "access plus 1 year"
 ExpiresByType image/jpeg "access plus 1 year"
 ExpiresByType image/gif "access plus 1 year"
 ExpiresByType image/png "access plus 1 year"
 ExpiresByType text/css "access plus 1 month"
 ExpiresByType application/pdf "access plus 1 month"
 ExpiresByType text/x-javascript "access plus 1 month"
 ExpiresByType application/x-shockwave-flash "access plus 1 month"
 ExpiresByType image/x-icon "access plus 1 year"
 ExpiresDefault "access plus 2 days"

Simply adding these 3 blocks of code to your .htaccess file will greatly improve the performance of your website or WordPress theme. After you’re done implementing the code head over to GTMetrix and put your site to the test.

    Knowledge Base Center

    Use our Knowledge base center to quickly find answers to your questions. If you can't find the answer you are looking for then post a question on our support forum instead.

    Visit our Knowledge Base Center →

Easy Social Login
keyboard_arrow_up keyboard_arrow_down

Get a 15% off discount

Subscribe to our newsletter to receive news, promotions, updates and upcoming releases.