WordPress allows websites to be created without specialist programming knowledge and it is no coincidence that 26.7% [source] of websites are created using this web application.
Despite this success, WordPress is not perfect and it can produce sites which are slow to load, which can discourage your visitors and seriously affect your site’s referencing. In this article, we will look together at how to speed up and optimise a WordPress site by sharing with you the work we have carried out to boost the Infomaniak blog you are on at the moment.
Assess your website
Before you optimise a site, it is important to check your website’s overall performance. As well as giving you relevant pointers for optimising your site, these free tools will allow you to measure the increase in speed obtained through the following advice.
GTMetrix
GTmetrix allows you to check a site is working well and to carry out performance tests from different access points around the world. The tool also highlights the aspects of your site which need to be optimised as a priority.
DareBoost
DareBoost is a tool which will allow you to carry out a free audit in order to check whether you are using the different SEO, security, etc. standards correctly. For each analysis of elements, the tool describes the tasks to be performed to correct the problems detected.
Google Page Speed
As with GTMetrix or Dareboost, Google Page Speed allows the errors which need to be corrected on your site to be highlighted in order to improve its performance on mobile devices and computers. Different colour codes allow the problems to be quickly identified as a priority (RED), and those which need to be corrected over time (ORANGE).
Whatever your results, there are 2 main levers to optimise and speed up the loading of a website:
- reduce the number of files to be loaded
- reduce the size of the files to be loaded
In this article, we will now explore several ways to proceed on these two optimisation levers.
1. Compressing HTML, CSS and javascript files
Minifying resources allows the quantity of HTML, CSS and javascript code to be downloaded when a visitor browses your website to be reduced. This can therefore significantly reduce a site’s loading time.
Today, certain paid cache plugin extensions like WP Rocket allow these resources to be compressed and combined in just one file in order to reduce the number of HTTP requests. In terms of free plugins, you can use Autoptimize or WP Performance Score Booster to simply add and minify your site’s JS, CSS and HTML code.
2. Compressing and optimising images
Compared to HTML, CSS or javascript code, images are bigger files which take longer to load. Optimising and compressing your site’s images should therefore be a priority.
In order to optimise your images without reducing their quality, you can either use software such as ImageOptim, or a WordPress extension such as Imagify or WP Smush.
3. Using images sparingly (if possible)
After compressing and optimising your images, it is time to start looking for images you can now replace with fonts or CSS code. For example, it is entirely possible to create shading or backgrounds in CSS.
This recommendation requires a certain amount of technical knowledge and here are two sites which give examples for replacing images using CSS style pages:
- css-tricks.com
- alsacreations.com (in French)
4. Using social widgets sparingly
Integrating social networks like Facebook or Twitter on a site offer many advantages, but these do generally make a site load significantly more slowly by calling on resources which are not hosted on your server and over which you have no control.
It is therefore recommended that you use widgets and extensions which allow social networks to be integrated on your site sparingly. Generally, all elements which are external to your site can slow its loading (Google Analytics, Piwik, images hosted on another server, etc.).
5. Deferring the loading of images, videos,… (Lazy Load)
All the elements of a web page load by default when you visit a website. The concept of Lazy Load is only loading a site’s images, videos and comments when the visitor can potentially see them. Deferred loading therefore significantly speeds up the loading of long pages which contain images or videos.
Certain WordPress themes and cache extensions such as WP Rocket allow deferred loading to be enabled in 1 click in their options. If necessary, free extensions like Lazy Load (for images) or Lazy Load for Videos can be installed to enable this functionality with any WordPress theme.
6. Optimising the loading of customised fonts
The graphic layout of a website sometimes imposes different font styles. If your fonts are loaded from external sites, like Google Fonts, and you use several different fonts, it is recommended that you load these fonts all at once.
For example, instead of loading two fonts like this:
Bad practice, loading in several steps:
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
It would be preferable to load all of your fonts at once:
<link href="https://fonts.googleapis.com/css?family=Montserrat|Open+Sans" rel="stylesheet">
The Google Fonts interface already provides an optimised integration code, but it is still good to check whether your theme uses this good practice.
Conclusions and other advice to speed up a WordPress site
By following this advice, you will now optimise your WordPress very well compared to a normal installation. As you will see in the GTMetrix, Google Page Speed and DareBoost reports, there are other ways to optimise a WordPress site and we could also have gone further with the optimisation of our own blog.
Before concluding this first guide to optimising WordPress, here is some advice which could speed up the loading of your site:
- always use the latest version of WordPress, your theme and your extensions
- always use the latest version of PHP and MySQL. The latest versions of PHP and MySQL massively improve the performance of a website
- enable static and dynamic file compression (to find out more)
- choose a reliable hosting service provider (Infomaniak is the fastest French-speaking hosting service provider on the market!)
Vous aimerez aussi...
Case study: Okam uses the Infomaniak Public Cloud to accompany SMEs in their digital transformation
Monday December 5th, 2022
Case study: Idéative develops the resilient digital ecosystem of the CHUV
Thursday October 27th, 2022
kDrive: online collaboration on Microsoft Word, Excel and PowerPoint documents
Thursday October 13th, 2022
Auch interessant...
Case study: Okam uses the Infomaniak Public Cloud to accompany SMEs in their digital transformation
Monday December 5th, 2022
Case study: Idéative develops the resilient digital ecosystem of the CHUV
Thursday October 27th, 2022
kDrive: online collaboration on Microsoft Word, Excel and PowerPoint documents
Thursday October 13th, 2022
Case study: Nako is modernising its data backup and cybersecurity offer with Swiss Backup
Monday August 15th, 2022
The Infomaniak Email Service is evolving, centralising security and user management
Thursday August 4th, 2022
Engineering ladder: Infomaniak promotes personal fulfilment and career growth for developers
Thursday July 14th, 2022
Partner programme (B2B): become a reseller of Infomaniak services to develop your business
Friday March 25th, 2022
Case study: Axium IT creating a new IaaS offering to migrate customers to Infomaniak’s Public Cloud
Friday February 4th, 2022
Octree is accelerating the adoption of digital participatory democracy with the Infomaniak Public Cloud
Friday November 19th, 2021
Case study: Deeplink is migrating its AI platform from AWS to the Infomaniak Public Cloud
Friday October 1st, 2021
Public Cloud: Infomaniak is launching a sovereign alternative to the GAFAM group at very aggressive rates
Tuesday September 28th, 2021
Events streaming: Théâtre Confiture becomes an innovation laboratory for Infomaniak Tickets
Thursday July 8th, 2021
Webmail that’s 100% independent: Infomaniak offers a unique alternative to GAFAM
Thursday May 20th, 2021
kMeet: the local alternative to Microsoft Teams and Zoom becomes more powerful
Tuesday May 11th, 2021
Datacenter security: how does Infomaniak protect itself against the worst-case scenarios?
Thursday March 18th, 2021
Control over data: data centres are the cornerstones of Infomaniak’s independence
Friday March 5th, 2021
Infomaniak × École 42 Lausanne: free local developer training for world-class skills
Friday January 22nd, 2021
Roadmap 2021: Infomaniak accelerates the development of its independent technology
Tuesday December 8th, 2020
Engineers, whistleblowers, ethical hackers… this is how Infomaniak protects your URL data
Monday November 9th, 2020
Encrypted email address: Infomaniak supports HIN for professionals dealing with health-related issues
Monday September 7th, 2020
kMeet, which is still free of charge, gets a makeover and now features moderation and recording
Monday September 7th, 2020
Swiss Made Software: building the technological alternative in the heart of Europe
Wednesday August 26th, 2020
One single password to manage everything: Infomaniak’s continuing its simplification process
Friday August 14th, 2020
Infomaniak 2020 Roadmap: a genuine alternative to the Big Five tech companies
Friday February 21st, 2020
WordPress – global success driven by the efforts of an open-source community
Friday February 21st, 2020
9 reasons to choose Infomaniak to store your data and ensure data confidentiality
Monday February 3rd, 2020
Introducing kDrive: Switzerland’s first collaborative storage solution for SMEs and individuals
Friday December 20th, 2019
Black Friday: Infomaniak is clear – the planet is not something to haggle over
Friday November 29th, 2019
Infomaniak makes life easier for domain name owners and purchasers through bulk transfer
Monday September 23rd, 2019
Application hosting: an on-demand infrastructure to host a public service (case study)
Wednesday September 4th, 2019
How to create a Google Analytics goal for monitoring subscriptions to a newsletter
Friday August 16th, 2019
Web hosting with DIVI: free access to all WordPress themes by Elegant Themes
Thursday June 27th, 2019
Jelastic Cloud: the easy alternative to Amazon Web Services and Google Cloud Platform
Wednesday May 15th, 2019
Infomaniak makes your sites even more secure with Patchman Security Scanner
Friday February 22nd, 2019
Infomaniak launches SwissTransfer, the Swiss high-capacity alternative to WeTransfer
Friday February 15th, 2019
Speed up the page load time of your website anywhere in the world with Fast Anycast DNS
Friday February 1st, 2019
Guest Manager: the one-stop event organisation solution is now more powerful than ever before
Friday January 18th, 2019
Swiss Backup, the Swiss backup solution for Windows, Mac, Linux, iOS and Android
Thursday November 29th, 2018
Infomaniak Sync: the Android app to sync your WorkSpace calendars and contacts
Friday November 9th, 2018
DebConf18 in Taiwan: Infomaniak contributes to Open Source at the highest level
Tuesday October 16th, 2018
WorkSpace 3: the new generation of Swiss Webmail is evolving with its users
Friday September 14th, 2018
Infomaniak launches Jelastic Cloud: the Swiss PaaS platform for developers and businesses
Tuesday September 4th, 2018
ISO 27001: Infomaniak stands out for its optimal management of information security
Friday August 3rd, 2018
Invitation management service: Infomaniak launches a tool for organising your events
Friday July 27th, 2018
Create an on-line store: e-commerce sites are becoming increasingly popular
Wednesday March 21st, 2018
How to create a VPN in Switzerland with a Synology NAS, hosted with Infomaniak
Thursday March 15th, 2018
Infomaniak integrates the European General Data Protection Regulation – GDPR
Tuesday February 6th, 2018
Is your WordPress site not yet in https format? Here is how to enable it
Wednesday November 15th, 2017
5 concrete, simple recommendations for increasing your open rate – Email Marketing
Friday April 28th, 2017
Starting 4 April, your admin console interface is going to be gradually evolving
Thursday March 30th, 2017
Transfer a domain without interrupting the operation of your emails and Internet sites
Monday March 20th, 2017
The Rolex Grand Slam organiser sends its newsletters with Infomaniak: Interview
Thursday November 24th, 2016
A specialized partner of Solar Impulse, Infomaniak is actively involved in the adventure
Tuesday June 16th, 2015
Sync your contacts and calendars (even more easily) with the Infomaniak WorkSpace
Tuesday May 5th, 2015
Install Joomla, ownCloud, phpBB, and more… in just a few clicks with Infomaniak hostings
Friday January 23rd, 2015
Rencontres du Management Durable (Sustainable Management Meetings) at the CCIG
Friday June 20th, 2014
The new “Mon Site Facile” tool: easy web site creation in just a few clicks of the mouse
Friday February 28th, 2014
We also suggest...
Case study: Okam uses the Infomaniak Public Cloud to accompany SMEs in their digital transformation
Monday December 5th, 2022
Case study: Idéative develops the resilient digital ecosystem of the CHUV
Thursday October 27th, 2022
kDrive: online collaboration on Microsoft Word, Excel and PowerPoint documents
Thursday October 13th, 2022
Case study: Nako is modernising its data backup and cybersecurity offer with Swiss Backup
Monday August 15th, 2022
The Infomaniak Email Service is evolving, centralising security and user management
Thursday August 4th, 2022
Engineering ladder: Infomaniak promotes personal fulfilment and career growth for developers
Thursday July 14th, 2022
Partner programme (B2B): become a reseller of Infomaniak services to develop your business
Friday March 25th, 2022
Case study: Axium IT creating a new IaaS offering to migrate customers to Infomaniak’s Public Cloud
Friday February 4th, 2022
Octree is accelerating the adoption of digital participatory democracy with the Infomaniak Public Cloud
Friday November 19th, 2021
Case study: Deeplink is migrating its AI platform from AWS to the Infomaniak Public Cloud
Friday October 1st, 2021
Public Cloud: Infomaniak is launching a sovereign alternative to the GAFAM group at very aggressive rates
Tuesday September 28th, 2021
Events streaming: Théâtre Confiture becomes an innovation laboratory for Infomaniak Tickets
Thursday July 8th, 2021
Webmail that’s 100% independent: Infomaniak offers a unique alternative to GAFAM
Thursday May 20th, 2021
kMeet: the local alternative to Microsoft Teams and Zoom becomes more powerful
Tuesday May 11th, 2021
Datacenter security: how does Infomaniak protect itself against the worst-case scenarios?
Thursday March 18th, 2021
Control over data: data centres are the cornerstones of Infomaniak’s independence
Friday March 5th, 2021
Infomaniak × École 42 Lausanne: free local developer training for world-class skills
Friday January 22nd, 2021
Roadmap 2021: Infomaniak accelerates the development of its independent technology
Tuesday December 8th, 2020
Engineers, whistleblowers, ethical hackers… this is how Infomaniak protects your URL data
Monday November 9th, 2020
Encrypted email address: Infomaniak supports HIN for professionals dealing with health-related issues
Monday September 7th, 2020
kMeet, which is still free of charge, gets a makeover and now features moderation and recording
Monday September 7th, 2020
Swiss Made Software: building the technological alternative in the heart of Europe
Wednesday August 26th, 2020
One single password to manage everything: Infomaniak’s continuing its simplification process
Friday August 14th, 2020
Infomaniak 2020 Roadmap: a genuine alternative to the Big Five tech companies
Friday February 21st, 2020
WordPress – global success driven by the efforts of an open-source community
Friday February 21st, 2020
9 reasons to choose Infomaniak to store your data and ensure data confidentiality
Monday February 3rd, 2020
Introducing kDrive: Switzerland’s first collaborative storage solution for SMEs and individuals
Friday December 20th, 2019
Black Friday: Infomaniak is clear – the planet is not something to haggle over
Friday November 29th, 2019
Infomaniak makes life easier for domain name owners and purchasers through bulk transfer
Monday September 23rd, 2019
Application hosting: an on-demand infrastructure to host a public service (case study)
Wednesday September 4th, 2019
How to create a Google Analytics goal for monitoring subscriptions to a newsletter
Friday August 16th, 2019
Web hosting with DIVI: free access to all WordPress themes by Elegant Themes
Thursday June 27th, 2019
Jelastic Cloud: the easy alternative to Amazon Web Services and Google Cloud Platform
Wednesday May 15th, 2019
Infomaniak makes your sites even more secure with Patchman Security Scanner
Friday February 22nd, 2019
Infomaniak launches SwissTransfer, the Swiss high-capacity alternative to WeTransfer
Friday February 15th, 2019
Speed up the page load time of your website anywhere in the world with Fast Anycast DNS
Friday February 1st, 2019
Guest Manager: the one-stop event organisation solution is now more powerful than ever before
Friday January 18th, 2019
Swiss Backup, the Swiss backup solution for Windows, Mac, Linux, iOS and Android
Thursday November 29th, 2018
Infomaniak Sync: the Android app to sync your WorkSpace calendars and contacts
Friday November 9th, 2018
DebConf18 in Taiwan: Infomaniak contributes to Open Source at the highest level
Tuesday October 16th, 2018
WorkSpace 3: the new generation of Swiss Webmail is evolving with its users
Friday September 14th, 2018
Infomaniak launches Jelastic Cloud: the Swiss PaaS platform for developers and businesses
Tuesday September 4th, 2018
ISO 27001: Infomaniak stands out for its optimal management of information security
Friday August 3rd, 2018
Invitation management service: Infomaniak launches a tool for organising your events
Friday July 27th, 2018
Create an on-line store: e-commerce sites are becoming increasingly popular
Wednesday March 21st, 2018
How to create a VPN in Switzerland with a Synology NAS, hosted with Infomaniak
Thursday March 15th, 2018
Infomaniak integrates the European General Data Protection Regulation – GDPR
Tuesday February 6th, 2018
Is your WordPress site not yet in https format? Here is how to enable it
Wednesday November 15th, 2017
5 concrete, simple recommendations for increasing your open rate – Email Marketing
Friday April 28th, 2017
Starting 4 April, your admin console interface is going to be gradually evolving
Thursday March 30th, 2017
Transfer a domain without interrupting the operation of your emails and Internet sites
Monday March 20th, 2017