Joomla Performance Tips – Part 1

How to speed up your Joomla website

Joomla Hosting

This part of our performance tips series looks at Joomla based websites and what you can do to get the fastest possible loading times.

So why are loading times important? Recent research by Forrester Research on behalf of Akamai has identified two seconds as the new threshold for acceptable web page response times. With so much choice available on the internet, users just won’t put up with a slow loading page. They’ll hit the back button and go elsewhere. You’ve not only lost a visitor but your brand has been damaged.

Measure, Adjust and Test

Obviously there are complicated and expensive tools available that will test your site from many different locations and produce detailed reports, but free tools like YSlow and Firebug will show you load time reports in your browser. In this article we’ll be looking at Page Speed, a recently released extension for Firefox by Google.

  1. Install Firebug
  2. Download Page Speed
  3. Review the User Guide

Establish a base line speed for a number of pages on your site – try to pick a variety of styles including the home page, and any other popular landing pages. Make a note of the page loading times of some of your competitors websites, so you can benchmark yourself.

If you’re not happy with the results, now it’s time to start making changes!

Joomla Tweaks

1 – Enable Cache

Cache Settings

Enable Joomla’s core content cache.  From the Administrator login, go to  Global Configuration->Cache and Enable. The standard option is File. Depending on your host’s server configuration there may be other options here. The built in Joomla system caches objects. Objects are things such as function calls, modules, content articles, etc. This speeds up the generation for all pages and all visitors. Where it will not help (much) is for pages that require a lot of dynamic content to be generated every time they are loaded.

2 – Enable Gzip Compression

Enable Compression

With this option enabled, the server compresses the page content created by Joomla before sending it to the browser in real-time. The browser then decompresses the content and displays it. The option is enabled in Global Configuration -> Server -> GZIP Page Compression. It’s important to note that not all servers support gzip compression – ask your host, or in Joomla look in Help -> System info. Most web sites gzip their HTML documents, but as a typical web page will have many non-HTML components such as images, CSS and Javascript. It’s therefore worthwhile to compress any text response including XML and JSON. Image and PDF files should not be gzipped because they are already compressed. More tips on compressing CSS and Javascript can be found here.

3 – Choose your template carefully

There are thousands of templates made for Joomla, and a lot of them look stunning, but many have some severe performance penalties.  The problem is that some templates can use upwards of 70 separate images to display the page. Each image requires a separate HTTP request from the browser to the server and has to be downloaded. When testing, try your site under the default Joomla template and you’ll be amazed at the difference. Once you’ve chosen or designed your template, use the Page Speed extension to see if any images used by the template can be optimised further.

4 – Check your Extensions

The Joomla extensions directory contains components that can do just about anything and it’s fair to say most Joomla sites will use a couple at least. However it’s also a fact that some extensions are very inefficient and can slow your site dramatically. Fortunately you simply test if a component is causing problems by temporarily unpublishing it from your site and retesting in Firebug with Page Speed. If you do find a problem, you might be able to find another component that does the same thing.

5 – Optimise your Database

Joomla makes a lot of demands on the backend MySQL server. Regular optimization of your database can help keep things running smoothly. To optimize the tables go into phpMyAdmin (database administration tool), select all tables, and click “optimize”.  To read more about optimizing the database tables,  read this section from MySQL.

6 – Consider upgrading

It may be that your site has now been optimised as well as it can be, and although the page load speeds have improved, you want to take it to the next level. With 2020Media’s virtual server and dedicated server hosting plans, there is a smooth upgrade path. With complete control over the entire server environment, dedicated memory and CPU you can improve your Joomla performance over anything that would ever be possible on a shared hosting account.

Summary

In this article we’ve looked at why the performance of your website is important, how to test load times and  be systematic about testing, and finally looked at some important Joomla performance tips. One thing to remember is that trying these tips is reversible – Some can hurt performance, but most of the time they does help.  The only way to find out is to try it. If in doubt make a backup of your database before making each change.

Notes

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. 2020Media.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

6 thoughts on “Joomla Performance Tips – Part 1”

  1. I increased the speed quite dramatically in my old site by putting all javascript at the bottom of each page.
    It’s not always possible to have javascript loading last, but if you can, try it.

  2. Location is not so important (you know, the speed of light is about 300 000 km/s)
    The most important thing is your website optimization. Then goes speed of your server. Better use http://siteloadtest.com no location stuff, just the naked truth about your site.

Comments are closed.