7 tips to improve Joomla website performance [part 1]

Written by  Sunday, 22 October 2017 20:32

If you want to check the speed of your Joomla website, let’s start with speed test first. It can be said that site speed is one of the most important factors that affect directly a site performance. All your effort put into user-friendly interface, conversion rate optimization, high-quality content, and other things will not make sense if your page takes visitors too much time for loading.

Of course, I do not deny that Joomla is one of the most powerful CMS and the best choice for any business owners who want to have websites easily but it had better improve your site speed continuously. You can increase the speed of your Joomla site by using its inbuilt features and follow the tips I will mention in this article.

  1. Caching

There is an inbuilt catching system in Joomla. How does it work? When users request a web page, Joomla will perform some actions to respond. When you request a web page, Joomla will retrieve images, text, videos and other things from the database. This process will require the operation of plugins, templates, and other files and of course, it will affect the loading time of your site. When the cache is enabled, content and all files are stored in the Joomla cache. I will show you step by step guide on how to enable Joomla cache:

  1. Go to System and select Global Configuration.
  2. Click on System.

7 tips to improve joomla website performance templatetoaster blog 1 25dcb

  1. On the cache settings, click on the drop down menu next to the Cache label.
  2. Select On-conservative caching.

7 tips to improve joomla website performance templatetoaster blog 2 7

  1. Click save button to save the changes.

7 tips to improve joomla website performance templatetoaster blog 3

  1. Go to the Extension menu, select Plugin. There will be a list of all installed plugins returned.

7 tips to improve joomla website performance templatetoaster blog 4

  1. Search for cache in the search field in the top right corner of the screen.

7 tips to improve joomla website performance templatetoaster blog 5 79f34

  1. You will return the System-Cache plugin. The red cross shows that the plugin is disabled.
  2. Select the System-Cache plugin

7 tips to improve joomla website performance templatetoaster blog 6

  1. Click the Enable button. There will be a message saying that the plugin is successfully enabled.

7 tips to improve joomla website performance templatetoaster blog 7

htaccess Optimization Rules

Here are some optimization rules in .htaccess file to reduce loading time on your site. Some typical examples are:

  • ETag: It will determine if page components in browser cache match with server, so avoid downloading the components you had already downloaded before because those components will be loaded from the cache of the browser.
  • Expires Headers: It is also the same as ETag, but it will allow user to set different expiry times for different types of files.

If you want to use this rule, find .htaccess file on website root.

To be continued…

206 Read Last modified on Sunday, 22 October 2017

Related items

  • [solved] Deprecated: Methods with the same name as their class will not be constructors ... www/plugins/content/jw_sigpro/jw_sigpro.php on line 19

    If you update your hosting to v7.1 & more - you can look same notification 'Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_sigpro has a deprecated constructor in .../www/plugins/content/jw_sigpro/jw_sigpro.php on line 19'

    This code fix this problem you need Open plugins/content/jw_sigpro/jw_sigpro.php find this code in line 28:

    function plgContentJw_sigpro(&$subject, $params)
    	{
    		parent::__construct($subject, $params);
    
    		// Define the DS constant under Joomla! 3.0
    		if (!defined('DS'))
    		{
    			define('DS', DIRECTORY_SEPARATOR);
    		}
    	}

     And replase it to this code:

    public function __construct(&$subject, $params) {
    	parent::__construct($subject, $params);
    
    	// Define the DS constant under Joomla! 3.8.2+
    	if (!defined('DS')){
    		define('DS', DIRECTORY_SEPARATOR);
    	}
    }

    Awesome - it work done! :-)

    If you see same problem with jw_sig.php  - just download free new plugin from GitHub and install it: https://github.com/joomlaworks/simple-image-gallery

  • Improving conversion rate from existing traffic with Magento extensions

    If you are also a retailor, have your ever thought that you will be the formidable opponent of the giant like Amazon and Walmart or at least you desire to compete with them? If our answer is yes, you should build an actually powerful online selling system. So, the core of your marketing strategy should be conversion rate, not just traffic because traffic is just the visible part of the iceberg. There is one thing which is always true that a company selling well will gain high conversion rate. That is the evident truth.

    A common mistake of many business owners is putting too much efforts on stimulating traffic amount and almost forgetting conversion rate. If traffic is not converted, what does that high traffic amount mean?  After all, rate of conversion or purchasing seems to be the most proper criteria to evaluate whether how well your business works.

  • 7 tips to improve Joomla website performance [part 2]

    To continue with the tips to improve Joomla website performance, in the previous part, I had introduced how to use caching and .htaccess Optimization Rules, in this part, I will show you some other tips and hope you find it useful.

    Joomla Compression

    This is also an effective feature to optimize your website performance. When you enable this feature, the web page will be compressed and of course, the compressed page will take less time to load. Here is the way to enable Joomla Compression:

  • Joomla! 4 – The hope of promising year 2018

    During 2017, we have heard a lot of opinions that this year has been too gloomy for Joomla. However, we think that this year is so important because it is the stepping stone for the explosion in 2018 when we prepare to welcome Joomla! 4.0 and Joomla! Framework 2.0. In addition to introducing several new features, including a fully rebuilt Media Manager, an enhanced event dispatching system, and new security features such as support for prepared SQL statements, we have also been doing some routine maintenance and paying off some of our project’s technical debt by retiring deprecated code and raising the minimum supported software stack. And, with this released version, we also require PHP 7.

  • Unset Joomla Scripts from Template (k2 and other)
    in PHP
    // Unset unwanted Scripts - by name
    $unset_scripts = array(
    	'k2',
    	'...',
    );
    
    foreach($this->_scripts as $name=>$script)
    {
    	if (!preg_match('#(' . implode('|', $unset_scripts) . '#i', $name))
    	{
    		continue;
    	}
    
    	unset($this->_scripts[$name]);
    }

    or if you use joomla v3.8.1 you can try this php code:

    <?php
    	$doc = JFactory::getDocument();
    	unset($doc->_scripts[JURI::root(true) . '/media/system/js/mootools-more.js']);
    	unset($doc->_scripts[JURI::root(true) . '/media/system/js/mootools-core.js']);
    	unset($doc->_scripts[JURI::root(true) . '/media/system/js/core.js']);
    	unset($doc->_scripts[JURI::root(true) . '/media/system/js/modal.js']);
    	unset($doc->_scripts[JURI::root(true) . '/media/system/js/caption.js']);
    	unset($doc->_scripts[JURI::root(true) . '/media/jui/js/jquery.min.js']);
    	unset($doc->_scripts[JURI::root(true) . '/media/jui/js/jquery-noconflict.js']);
    	unset($doc->_scripts[JURI::root(true) . '/media/jui/js/bootstrap.min.js']);
    ?>

    if you wand disable all js & css scripts - use code:

    $doc->_scripts     = null;
    $doc->_script      = null;
    $doc->_styleSheets = null;