Joomla Extensions Demo

Support

Do not submit a bug report if you need technical support or have questions.

Forums

Post your suggestions ask for help in the community forums

Contact Me

Missing images/links, any comments, suggestions, need help? Contact me

Skype

Need desperately help?
Skype Me™! But dont abuse of it!

Optimize Joomla! site

joomla_cms

I did optimize a bit my Joomla! homepage in the last few days. This has been achieved with

  • Enabling Joomla module caching in all 3rd party module where it was missing/ not implemented at all,
  • Starting to offload some assets (JavaScript) to faster hosting,

Click read more to apply the same for your internet site.

Use Joomla Module caching

Not all 3rd party Joomla modules are using caching. This means that in worst case, some Joomla! modules may create way too much SQL queries. A way to reduce the load is to activate module caching. You’ll have to go through all 3rd party modules and check that they have in their administrator panel a setting to enable/disable cache.

jooomla.enable.caching

You’ll see that 90% of all modules (except official Joomla! modules which are able to deal with caching) are NOT supporting caching. We will change that now:

For every module without cache, open the xml file at /modules/mod_xxxxxxx/mod_xxxxxxx.xml and add between <params> .. </params>

<param name="cache" type="radio" default="0" label="Enable Cache" 
       description="Select whether to cache the content of this module">
 <option value="0">No</option>
 <option value="1">Yes</option>
</param>

Note that if <params> .. </params> do not exist, just add it like below

<params>
 <param name="cache" type="radio" default="0" label="Enable Cache" 
       description="Select whether to cache the content of this module">
  <option value="0">No</option>
  <option value="1">Yes</option>
 </param>
</params>

Visit or reload the admin panel of that module and set the Enable Cache to Yes. Click Save/Apply at least once.

Now the output of this module will be saved in /cache and only refresh when global Joomla cache timeout (900 seconds as default). Consider also contacting the author of the module so he can patch his code.

Offload assets

Offloading assets (JavaScript, static images, static files) can bring tremendous speed gains, at the cost of resolving more DNS name. Using this technique will help your Apache concentrate on php instead of streaming static data.

Offload JavaScript

When you look at Joomla! frontend source code, you will see that the JavaScript library mootols.js is 74kb big. Google is offering to host all major AJAX  libraries free of charge at http://code.google.com/apis/ajaxlibs/documentation/ so why not profiting of their datacenter speed/bandwidth/response time?

Now the dirty part, You can’t tell Joomla! not to include the mootols.js from /media/system/js/mootools.js at rendering time. We will have to patch the code of Joomla!

open /libraries/joomla/html/html/behavior.php and search for

if ($debug || $konkcheck) {
  JHTML::script('mootools-uncompressed.js', 'media/system/js/', false);
} else {
 //JHTML::script('mootools.js', 'media/system/js/', false); // old Joomla code
 JHTML::script('mootools-yui-compressed.js', 'http://ajax.googleapis.com/ajax/libs/mootools/1.11/', false);
}

Joomla use mootools.js in version 1.11, don’t use the latest version (1.2.3) as most Joomla! plugin wont work (but your mileage may vary).

To be continued

You might also like:
Alternate method to install Joomla/Drupal on Synology NAS
192 days ago
Alternate method to install Joomla/Drupal on Synology NAS
If you want more control, want to install Joomla yourself or want to install any other CMS, you ma
Running Joomla! on Synology NAS
192 days ago
Running Joomla! on Synology NAS
From small-and-medium business to individual users, Synology products offer a full range of choice
How to Solve a Problem with Joomla! jos_session
862 days ago
How to Solve a Problem with Joomla! jos_session
I was not seeing this error since at least 3 years: DB function failed with error number 1016
Digital watermarking with PHP and GD2
936 days ago
Digital watermarking with PHP and GD2
  Digital watermarking is the process of possibly irreversibly embedding information into
Watermarking your images with ImageMagick
951 days ago
Watermarking your images with ImageMagick
Digital watermarking is the process of possibly irreversibly embedding information into a digital
Joomlacomment 4.0 jQuery optimization
961 days ago
Joomlacomment 4.0 jQuery optimization
I did install yesterday evening the latest version of !JoomlaComment !JoomlaComment is one of th
Joomla! php, FastCGI, blank page and duplicate header 'Statu
1185 days ago
Joomla! php, FastCGI, blank page and duplicate header 'Statu
Since months, now I (understand also YOU) receive some blank page when browsing my Internet homepa
Skype me button for Joomla!
1191 days ago
Skype me button for Joomla!
Thanks to Skype web integration, making a button to show your online status has never been so easi
blog comments powered by Disqus
Category: How To

Donations

Thank You for supporting my work
Subscribe to me on YouTube

Latest Articles

  • In this series of post I will outline some common techniques to help Joomla extensions development. As you know Jooml... ...
  • CedTag  has been updated to version 2.5.3 and correct a lot of bugs and contains some nice features. CedTag is t... ...
  • CedThumbnails has been updated to version 2.5.5 and contains 1 new features for both Joomla 1.7 and Joomla 2.5. For ex... ...
  • CedSmugmug  has been updated to version 2.5.2 and correct some bugs and contains some nice features. CedSmugmug&... ...
  • If you want an extra gigabyte of storage on your Dropbox account, the online cloud service invites you to compete in i... ...

Subscribe

Latest Comments

Popular Posts

rockettheme advertisement

dropbox logo

Help Us & Leave Feedback!

  • Do you have an excellent article idea you would like to read about here? Share it!
  • Do you have some interesting tips how we could improve our site?
  • Something missing here? Help us make this blog a better place, leave feedback!
We would love to hear from you! Be active! Write us now!