Is your Joomla website loading slowly? If yes then you can make changes to the site to make it load faster which will in turn increase conversions and also keep visitors and Google happy.
The internet is an unforgiving place, you only get one chance to make an impression and if you get it wrong it's very difficult to recover from it.
A fast loading website plays an important role in the overall user experience the visitor expects to see when they visit a website.
Many other factors influence user experience and conversions at a website but speed has now become an important factor especially since more people now use mobile devices to visit websites. Google also uses website speed as a ranking signal in its algorithm which can influence a sites position in the search engine listings.
Website Speed Tools
Before you start the following Joomla website speed optimization tasks you need some way of measuring the speed of the site now and after you have made the changes.
There are a number of online tools available which you can use to measure the overall speed of your site plus they can also help you identify specific issues and make improvements to the website.
We have listed some sites below which we have used in the past and found them to be really useful to measure site performance and to help us make improvements.
Choosing a good, reputable web hosting company for your Joomla website is critical to ensure the website loads as fast as possible. You can make all the changes and optimization tweaks in the world to improve the performance of a website but all your hard work will be wasted if the hosting company does not deliver and there servers are slow and not fine-tuned to provide you with the best possible results.
Consider the following before choosing a web hosting company
- What do you need in terms of technical specification in both the short and long term (disk space, bandwidth, email accounts, MYSQL databases, backups, support and so on)
- Do you need a shared, VPS or dedicated server. Shared is cheaper but you will be sharing the server resources with hundreds of other websites. VPS gives you a lot more control and flexibility plus it will only have a limited number of VPS's hosted on the same physical server. Dedicated is your own server and only your website will be hosted on it.
- Think about the location of the hosting company. The closer to your customers the better. If your customers are based in the UK, then find a hosting company in the UK who have servers located in the UK.
- How long has the company been in business for?
- Contact the company via email with any questions you may have about the services they offer and for advice about the best solution for your specific website needs.
- Download the sample file from the hosting companies website to test the network speed
- Visit a reputable forum like Web Hosting Talk and read the reviews posted by people with real experiences of using the services.
G-zip compression is a quick and easy way to improve the overall website load time and will make your site load faster as the content will be compressed before it gets served to the visitors web browser.
To enable G-zip complete the following steps
Note the htaccess code below is for Apache servers only and not for servers running IIS, NGINX or LiteSpeed based servers
You also need to make sure the htaccess file is renamed from htaccess.txt to .htaccess (with a ."dot" in front and no .txt at the end)
- Open your FTP software and download the .htaccess file stored in the root of your Joomla website to your computer
- Open the .htaccess file using notepad.exe
- Add the following code to the top of the .htaccess file
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
4. Save the changes to the .htaccess file
5. Upload the updated .htaccess file to the root of your Joomla website using your FTP software
Once you have updated the .htaccess file and enabled G-zip you can test it to make sure its working correctly by visiting http://www.whatsmyip.org/http-compression-test/
Now you have enabled G-zip at a server level you can enable G-zip page compression in Joomla.
Complete the following to enable G-zip in Joomla
Log into the administrator area of your website and select the System Menu and Global Configuration Menu. Now select the Server Tab and you will see the option to enable or disable Gzip Page Compression
Enable Joomla cache
The next step you can take is to enable caching in Joomla which can really help with making your website load faster.
What caching basically does is store the output from your website pages in a single file which is then retrieved by the visitors browser each time they visit the website.
This is a much faster way of serving pages to visitors in comparison to serving pages from the MYSQL database which happens when caching is disabled.
Joomla offers two options conservative and progressive to cache the content at your website.
Conservative cache shows all visitors the exact same cached website content.
Progressive caching caches the content for each unique visitor.
You also have to option to enable or disable caching at a module level. If you don't change the content at your website much then conservative caching is a good choice. If your content is very dynamic and changes all the time then go with progressive caching.
To enable caching for Joomla complete the following
From the administrator area of your website select the System Menu, Global Configuration Menu and then the Server Tab
You will now see the option to disable caching or choose from conservative or progressive caching.
You can also change the cache time in minutes. This is the amount of time the cached file is stored on the website.
Example if you set the cache time to 15 then the cached files will refreshed every 15 minutes.
The number of images and size of the images included in your website can have a serious impact on how fast your site loads.
Each time a website loads it also has to load and render the images in the user’s browser. So if you have 10 or 20 images at between 40KB to 70KB per image then this will have a big effect on your site performance.
It is important to optimize the images you serve to visitors by reducing the size of them and ensuring the images use the correct dimensions (width, height) so they can be rendered as fast as possible.
Using the tools and software noted below can help you reduce the size of the images (JPEG, PNG, GIF) by up to 50% which is a big saving.
Extensions and Modules
Visiting the extensions directory can feel like been a kid in a sweet shop.
So many cool extensions and modules to choose from but careful what you install.
Think about why you need to install the extension or module and what value it will add to your website.
The more extensions or modules you install the more CSS, Java script files will be loaded each time the website is opened by the visitor not to mention the number of MYSQL queries which get generated by the extension or module every time the website is opened.
Also ensure you keep the modules or extensions you have installed up to date as the developer may have made some improvements to the code. We also recommend removing, uninstalling any extensions or modules which you no longer use.
The template you install and run at your website can effect the overall speed of your site.
Every time the website loads it also loads the template you have installed and assigned to the site.
We try very hard to optimize all the templates we develop and release at the website to ensure they load as fast as possible to give website visitors the best possible user experience.
JCH Optimize Extension
The extension is really easy to use and setup plus you can get some really impressive results from this extension which will improve the overall speed of your website to help you achieve a better ranking position in Google and to deliver a good user experience to your visitors.
CDN - Content delivery network
Most of the CDN solutions available from Maxcdn, Amazon Cloud, Incapsula, Cloudflare will also compress the static files delivered to the visitors. Some of the CDN suppliers also offer a free version which you can try out before committing to a paid solution.
It is really easy to setup the CDN at your website. All you need to do is make a small change to the website DNS settings and install the CDN For Joomla extension.
The above tips included in this article will hopefully provide you with a basic getting started guide to help you optimize and improve the overall speed of your website.
We know their are lots of other ways to optimize a website which we have not discussed in this article including browser caching, installing NGINX or LiteSpeed or optimizing Apache and MYSQL on your server.
In the fourth coming weeks we will be writing a blog post covering the more advanced techniques you can use to help you optimize your website.