Joomla optimization

Joomla includes several configuration options that you can use to improve the speed and responsiveness of your website. The procedures below will show you how to configure these options so that they are optimized for high performance.

The settings described in this article are for Joomla 3.4. Earlier versions of Joomla may not include some of these settings.

If you configure Joomla as described below and the performance of your website is not yet at the desired level, there are additional options:

  VPS hosting packages on SSD servers

Caching

Joomla includes caching options, but they are disabled by default. To enable caching for your site, follow these steps:

  1. Log in to your Joomla website as an administrator
  2. In the top menu bar, click System, then Global Configuration
  3. Click the System tab
  4. In Cache settings, in the Cache List box, select ON - Conservative caching

-  with Caching conservator, all visitors to the web site see the same cached content (this is how the cache works in most sites)

5. In the Cache Time text box, type the maximum length of time (in minutes) for which Joomla should cache the pages of the website until they are renewed.

6. If the content of your web site does not change frequently, you can set the cache time to a longer interval. Similarly, if the content of your site is updated frequently, we recommend that you set a shorter cache time.

7. Click on Save

8. In the top menu bar, click Extensions and then Plugin Manager

9. In the Search box, type cache, and then press Enter

10. In the Status for System - Page Cache column, click the red X icon to activate the plugin. Caching is now enabled for Joomla.

Compression

The Apache module mod_deflate allows you to compress the output. This reduces both the bandwidth and the download time of the web site pages. To enable output compression for Joomla, follow these steps:

Open the .htaccess file in a text editor. If the .htaccess file does not exist in the Joomla directory, create it.

Add the following lines to the .htaccess file:

<IfModule mod_deflate.c>
        AddOutputFilterByType DEFLARE  text/html text/css text/javascript application/javascript
</ IfModule>

Save the changes to the .htaccess file. The changes take effect immediately.

Browser caching

The Apache mod_expires module allows you to instruct web browsers while caching certain types of content. This saves both the bandwidth used and the page download time. To enable browser caching directives in Joomla, follow these steps:

Open the .htaccess file in a text editor. If the .htaccess file does not exist in the Joomla directory, create it.

Add the following lines to the .htaccess file:

 <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/gif "access plus 1 month"
        ExpiresByType image/jpeg "access plus 1 month"
        ExpiresByType image/png "access plus 1 month"
        ExpiresByType text/css "access plus 1 week"
        ExpiresByType text/javascript "access plus 1 week"
        ExpiresByType application/javascript "access plus 1 week"
        ExpiresDefault "access plus 1 week"
    </IfModule>

Save your changes.

JavaScript and CSS files

You can help reduce the loading time of your pages by optimizing JavaScript and CSS files. This process includes:

  • Combining JavaScript and CSS files. This reduces the number of HTTP requests required to load a page.
  • Minifying JavaScript and CSS files. This reduces the amount of bandwidth required to load a page.

There are several Joomla plugins that allow you to do these optimizations; JCH Optimize plugin is one of the most popular. To install this plugin, follow the steps below:

  1. Download the JCH Optimize installation .zip file to your computer (https://www.jch-optimize.net/downloads.html)
  2. Log in to Joomla as an administrator
  3. On the Administration page, in the top menu bar, click Extensions, then Extension Manager
  4. In the Upload Package File section, click Browse
  5. Locate the plg_jch_optimize_x.x.x.zip file, then click Open. The exact name of the file varies depending on the version downloaded.
  6. Click Upload & Install
  7. In the top menu bar, click Extensions, then Plugin Manager
  8. In the Search form, type jch, and then press Enter
  9. In the Status column for System - JCH Optimize column, click the red X icon to activate the plugin. The icon changes to a green mark when the plugin is activated.
  10. Select the System - JCH Optimize check box, then click Edit. The JCH Optimize configuration page is displayed
  11. In the Automatic settings section, click Minimum
  12. Click Save

Developer debugging

Joomla includes two options to help developers debug and troubleshoot problems. These options can consume system resources and negatively affect performance, so they are disabled by default.

Activate these options only if you need to check / investigate a certain problem. To check if these options are disabled for your web site, follow the steps below:

  1. Log in to Joomla as an administrator
  2. In the top menu bar, click System, then Global Configuration
  3. Click System
  4. In the Debug Settings section, confirm that the Debug System and Debug Language options are set to No.
Was this answer helpful? 0 Users Found This Useful (0 Votes)