Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Speed up your WordPress

Friday, August 16th, 2019 by Helge

wpspeedupguideIn today’s digital world, it is important to have a website for your business be it either for your porfolio, hobby, blogging, v-blogging or e-commerce online store. The most commonly used CMS for such activities is WordPress. Many people create great websites but then forget to optimize it for better performance and better SEO results. Many Servage customers are using WordPress for their professional and private purposes. Via our new Servage platform, you can easily host your WordPress pagesServage provides everything to support that. This post is to help you understand the importance of speedy website and how to get such results.  We get give only some examples in this post. Site speed reflects how quickly a website responds to web requests. Speeding up websites is important — not just to site owners, but to all Internet users. Faster sites create happy users and I’ve seen in many studies that when a site responds slowly, visitors spend less time there.

Below are some key points to improve your site speed.

  • Get rid of all those unwanted plugins and themes. They use resources even when not in use.


  • Add below gzip compression code in .htaccess file.
    # GZIP enabled
    <IfModule mod_deflate.c>
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE “application/atom+xml” \
    “application/javascript” \
    “application/json” \
    “application/ld+json” \
    “application/manifest+json” \
    “application/rdf+xml” \
    “application/rss+xml” \
    “application/schema+json” \
    “application/vnd.geo+json” \
    “application/” \
    “application/x-font-ttf” \
    “application/x-javascript” \
    “application/x-web-app-manifest+json” \
    “application/xhtml+xml” \
    “application/xml” \
    “font/eot” \
    “font/opentype” \
    “image/bmp” \
    “image/svg+xml” \
    “image/” \
    “image/x-icon” \
    “text/cache-manifest” \
    “text/css” \
    “text/html” \
    “text/javascript” \
    “text/plain” \
    “text/vcard” \
    “text/vnd.rim.location.xloc” \
    “text/vtt” \
    “text/x-component” \
    “text/x-cross-domain-policy” \
    # END GZIP


  • Add below expire headers code in .htaccess file:
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault                                      “access plus 2 months”
    # CSS
    ExpiresByType text/css                              “access plus 1 year”
    # Data interchange
    ExpiresByType application/json                      “access plus 0 seconds”
    ExpiresByType application/xml                       “access plus 0 seconds”
    ExpiresByType text/xml                              “access plus 0 seconds”
    # Favicon (cannot be renamed!)
    ExpiresByType image/x-icon                          “access plus 1 week”
    # HTML components (HTCs)
    ExpiresByType text/x-component                      “access plus 2 months”
    # HTML
    ExpiresByType text/html                             “access plus 0 seconds”
    # JavaScript
    ExpiresByType application/javascript                “access plus 1 year”
    # Manifest files
    ExpiresByType application/x-web-app-manifest+json   “access plus 0 seconds”
    ExpiresByType text/cache-manifest                   “access plus 0 seconds”
    # Media
    ExpiresByType audio/ogg                             “access plus 2 months”
    ExpiresByType image/gif                             “access plus 2 months”
    ExpiresByType image/jpeg                            “access plus 2 months”
    ExpiresByType image/png                             “access plus 2 months”
    ExpiresByType video/mp4                             “access plus 2 months”
    ExpiresByType video/ogg                             “access plus 2 months”
    ExpiresByType video/webm                            “access plus 2 months”
    # Web feeds
    ExpiresByType application/atom+xml                  “access plus 1 hour”
    ExpiresByType application/rss+xml                   “access plus 1 hour”
    # Web fonts
    ExpiresByType application/font-woff                 “access plus 2 months”
    ExpiresByType application/font-woff2                “access plus 2 months”
    ExpiresByType application/         “access plus 2 months”
    ExpiresByType application/x-font-ttf                “access plus 2 months”
    ExpiresByType font/opentype                         “access plus 2 months”
    ExpiresByType image/svg+xml                         “access plus 2 months”
    # END LBC


  • Above codes can also be added automatically by installing cache plugins such as W3 Total Cache or WP SuperCache which we are going to next.
  •  Install LSCache plugin which is used to minify js/css scripts, optimize images, enable lazzy loading of js/css/images, etc. This is a tricky part as each setting affects differently on your website so it is important that you enable them one by one instad of enabling all of them at the same time. After enabling the various options, it is important that you access the website in either private mode or after clearing cache.LSCache plugin works best with LiteSpeed web server but you can install it to work with any other web server as well. Few things won’t work from it as they are designed to work specifically for LiteSpeed webserver but there are many major factors you can still use for your website. Few key features are listed below:Image Optimization (Lossless/Lossy)
    Minify CSS, JavaScript, and HTML
    Minify inline CSS/JS
    Combine CSS/JS
    Automatically generate Critical CSS
    Lazyload images/iframes
    Load CSS/JS Asynchronously
    OPcode Cache


For more information, please visit below URLs:



Speed up your WordPress, 4.3 out of 5 based on 8 ratings
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

No comments yet (leave a comment)

You are welcome to initiate a conversation about this blog entry.

Leave a comment

You must be logged in to post a comment.