Often users ask me why their WordPress blog is so slow.
Well, there’s no general answer for that question, it could be due to plugins or maybe something related to your server host.
But one thing is certain: speed is one of the most important factors for a good UXP (= “user experience”) and a common reason why visitors leave a page, frustrated.
And were talking about matter of seconds here: From a waiting period of 3 seconds on you will lose approximately 40% of your visitors.
Also Google is very interested in a high build-up speed of your site; if you’re too slow, you are prone to receive penalties in terms of search results.
So let’s begin by finding out how slow your site really is. We are able to do so by downloading the yslow extension of Yahoo.
Yslow is a tool that lets you breakdown and display your site’s performance issues in a very simple way and gives tips on improving these problems.
On the basis of 24 criteria the global settings are then tested as well as your individual content (images / stylesheets / HTML), conclusively giving you school grades and points (maximum 100) based on the preceding analysis.
By clicking “Run Test” you get a detailed breakdown of your blog’s speed. Since problems are highly dependent upon what kind of theme you use, the main focus of this tutorial lies on general solutions that have the power to increase the speed of every blog.
1. Let’s start with the caching:
Caching is the process by which frequently used files are temporarily saved so they do not have to be created / recalculated each time . Your blog’s article overview for example would only have to access a database, even if new articles have been created, instead of obtaining a new list every time a new page viewer accesses the site.
You can achieve this and a lot more, by using caching plugins like the powerful W3 Total Cache tool.
2. Make your images load lazy
When it comes to space, images often claim more than 50% of a given page. They are one of the biggest traffic drivers and significantly connected to the build-up speed of your site.
Especially with very image-heavy blogs it pays off to make sure they are only loaded when the user scrolls towards them.
Thats exactly what the so called lazy load scripts do. They replace content outside of the browser window with placeholders, only calling up the real files when users actually scroll down to the image.
This will increase the build-up speed by a multitude, enhancing the UXP and costing less server bandwidth.
You can do this by going to Plugins → Add New and put in “BJ Lazy Load”. Of course there are several Lazy Load plugins out there, I would recommend the one by Bjørn Johansen tough, because it lags less when reloading and has a better compatibility with coaching-plugins.
3. Lazy Share-Buttons for social sharing
Integrating Facebook, Pinterest and Twitter buttons to your blog can considerably slow down your site.
But because social sharing is a thriving motor behind any blog’s success, we have to find a way to work around these issues.
Option 1: Reloading Social Buttons per click
The two-click social button solution is mainly used by platforms that have critical privacy conventions. With every click of the like-button, facebook will know from where your IP has been prompted, thereby making it very easy for them to realize your path outside of facebook, which does not appeal to some users and page-owners.
The german tech magazine heide.de wrote a plugin that helps you work yourself around that, by blending out the share-buttons until the second click.
And even though our article here still focusses more on blog-performance, this plugin is definitely worth a try.
- Go to Plugins → Add New
- Look for “2 Click Social Media Buttons”
- Click installation
- After completing installation, click “Activate”
Open the settings in the plugin-overview of “2 Click Social Media Buttons”. There you can decide which share buttons you want to use and where they should appear.
Important: Under Infotext you can change the descriptive paragraph about the plugin. This is important, because the default-text is set to German.
Add the following text in the spaces “Facebook” up to “Pinterest”:
2 clicks for more privacy: Not until you click here will the button activate and you will be able to send a recommendation to Facebook. Even by merely activating it there there will be data transmitted to third parties.
Write this under “Infobutton” :
If you activate these areas by clicking, your information will be sent abroad to Facebook, Twitter, Flattr and Google and they might be saved by these parties.
And under “Permaoption” you add the following text:
Permanently activate the Share-Buttons
Option 2 : Newsgrape Mouse-Over share buttons.
Try adding mouse-over share buttons, so that you can make sure your site online transmits data when it is actually needed.
This will significantly enhance your performance, because the scripts are only activated when your users click on the buttons.
You can install the WordPress plugin right here, and it will look something like this:
These were some simple, yet powerful steps to boost the performance of your blog. If you have any further questions on how to conduct these alterations, feel free to contact me via email@example.com