ToHeader Joomla plugin - Mootools.js disabled
Facts - Php
Friday, 08 August 2008 11:48
Article Index
ToHeader Joomla plugin
Using the ToHeader Plugin
Download the ToHeader Content Plugin
Invalid XML
Mootools.js disabled
All Pages

Mootools.js disabled with php code in index.php of the template

Many joomla 1.5 users recommend disabling the loading of mootools.js (Mootools v1.1) in the frontend. This javascript file is only needed in the backend and by some custom plugins/modules. Disabling the loading of this file reduces a lot of bandwidth.

Mootools.js is often disabled using php code in the head tag of the index.php of your template. Usually this php code has the side effect of deleting the script tags from the ToHeader and the CustomHeadTag plugins as well.

If you disable Mootools.js with such php code then you can still include your scripts with the customtag element inside the ToHeader plugin. See the example above.