Product Documentations

General

How to increase the speed of your site

You can test the speed of your website using Google PageSpeed Insight service here. Enter your site URL there and click the Analyze button.

NOTE: Remove all useless plugins and don’t use google ads (AdSense) when testing your site’s page speed (you can add them after that).

We recommend the following list of actions for optimal speed

  • We recommend that you use WP Super Cache with default settings.
  • If you have a lot of RAM on your server, you can also use the APC full page cache.

If you have a dedicated server / VPS (Virtual Private Server) then:

  • Make sure that you have APC installed or another ‘op cache’ for PHP. This will reduce your server response time. We have received some reports that the accelerator has some problems in some specific configurations with our theme and Nginx
  • Make sure that you have compression enabled on your site for HTML/JS/CSS but not for images
  • Leverage browser caching https://developers.google.com/speed/docs/insights/LeverageBrowserCaching Google PageSpeed requires that you set an expiring cache of 7 days or more

If you are on a shared hosting or a low power VPS, please update to a more powerful server for better speeds.

You could also check the WordPress official optimization guide here.

Before you make any changes to your site please backup the files on which you intend to apply the modifications. In this case, we’re going to modify the .htaccess file so we recommend that you save a copy of the .htaccess file on your hard-drive before you start modifying it, if something goes wrong you can use it to return to the previous state.

1. Enabling Gzip compression

This will compress the HTML and CSS and will improve the page loading speed and reduces bandwidth usage.

The setup is different from one server to another so you may have to look at your host instructions section to see how you can enable it on your site.

The theme demo server is set like this:

<IfModule mod_deflate.c>
<filesMatch "\.(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>

2. Set the Leverage Browser Caching

By setting this you’ll tell your visitors browsers to remember (caching)  some of your website resources that you don’t change so often (like the logo or the CSS/JS libraries, posted images, etc.) and only refresh them after a defined period of time.

To set it you have to add something like this on your .htaccess file.

NOTE: the setup may differ based on what resources you want to include.

Setup from the theme demo server:

# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 604800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
ExpiresByType application/x-font-woff "access plus 604800 seconds"
ExpiresByType application/x-font-svg "access plus 604800 seconds"
ExpiresByType image/svg+xml "access plus 604800 seconds"
</ifModule>
# END Expire headers

3. Optimize images

Images are one of the largest resources on your pages and the larger they are the longer it will take to download slowing the page loading speed.

To reduce their size and increase the page loading speed image compression and optimization are required. There are plenty of guides out there on how you can optimize the images (using software like Photoshop or similar).

Alternative:

Add the following code at the end of the functions.php which is located in the theme folder, the code will automatically compress each thumbnail to 50%:

add_filter( 'jpeg_quality', function(){ return 50; } );

After you add the code you need to regenerate the thumbs, for that you could use the Force Regenerate plugin.

The value 50 stands for 50% if you want a better compression or better quality modify it and regenerate the thumbs. Experiment until you get the optimal value.

4. Use a cache plugin (WP Super Cache)

The plugin installation and configuration is presented here – link

5. Plugin Load Optimization (optional – advanced)

You can make your site faster further by optimizing scripts/assets loaded by the plugin. You can look for methods that allow you to control the loading of plugins’ assets. For example, To optimize Contact Form 7 check this one.