Saturday, February 04, 2012

Demo Joomla! 1.5

Visit the Joomla! 1.5 demo site to see my extensions live running

Follow Me

Follow cedricwalter on Twitter Subscribe via RSS Subscribe via RSS Follow us on Facebook Follow us on Google+

Demo Joomla! 2.5

Visit the Joomla! 2.5 demo site to see my extensions live running

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

Wiki

Visit the Wiki extensive and up to date documentation at your fingertips.

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

User Rating:  / 0
PoorBest 

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
85 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
85 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
755 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
829 days ago
Digital watermarking with PHP and GD2
  Digital watermarking is the process of possibly irreversibly embedding information into
blog comments powered by Disqus
Parent Category: Joomla
Category: How To

Donations

Thank You for supporting my work

Latest Articles

  • Thanks to Ondřej Surý,  maintainer for some Debian packages, you can have the latest PHP5 maintained by Debian ... ...
  • Munin is a networked resource monitoring tool that can help analyze resource trends and "what just happened to ki... ...
  • The General Robotics, Automation, Sensing and Perception (GRASP) Lab, located at the University of Pennsylvania, is al... ...
  • There is a lot of shareware and freeware (jEdit, Notepad++) to do complex search and replacement in files but none is su... ...
  • Data URI scheme is a URI scheme that provides a way to include data in line in web pages as if they were external reso... ...

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!

Blogs

Didier Beck Tech Head Brothers

google+ badge