Joomla loads Mootools.js and caption.js by default. If you have ever wondered why your simple pages load slowly, this could be the reason.

If you have nothing that uses Mootools.js (dropdown menus and such) and want to speed up your site then it would be a good idea to stop it from loading.

In your index.php file, place the following code directly above: <jdoc:include type="head"></p> <p><br /><?php $user =& JFactory::getUser(); if ($user->get('guest') == 1) { $headerstuff = $this->getHeadData(); $headerstuff['scripts'] = array(); $this->setHeadData($headerstuff); } ?></p> <p> </p> <p>This will stop mootools and caption from loading for all people viewing the website but keep it enabled for anyone above 'guest' level for the administration so you don't loose functionality in the backend.</p> <p>If you want to keep the scripts but speed up mootools loading time click here</p>"

Category: Joomla

Newsletter Signup

Latest Posts

Google+ Timeline Feed for your Website Google+ Timeline Feed for your Website 2012-05-11 - I was asked earlier today to create a Google+ widget for a website to replace a twitt... More detail
Run Facebook Messenger on Windows Vista Run Facebook Messenger on Windows Vista 2012-04-19 - Facebook has just released it's new messenger for windows but it only runs on Windo... More detail
Translate K2store Product Attributes with Joomfish Translate K2store Product Attributes with Joomfish 2011-11-03 - If you have a K2store and your site is in multiple languages, you might have found th... More detail
French Translations for K2store French Translations for K2store 2011-11-02 - I have been working recently with the K2 component/plugin K2store. As a simple sho... More detail
How I Upgraded to Joomla 1.7 How I Upgraded to Joomla 1.7 2011-09-25 - Inspired by Robert Vining over at www.joomstew.com and the fact that I am building mo... More detail

Twitter Stuff