O'Reilly logo

Joomla! 1.5 JavaScript jQuery by Jose Argudo Blanco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Removing MooTools

At this point you may think that this is not necessary, as the SC jQuery plugin loaded the jQuery library with the "no conflict" mode, and we had no problems between the libraries.

But at the moment we aren't using the MooTools library. So, why load it? Anyway, we are going to see a way of removing the MooTools library. There are lots of other ways out there. Later, you will be able to decide if you want to remove it or not.

So let's get started; we will do this in our template. Open the templates/jj15/index.php file. In the template we have the following code:

<jdoc:include type="head" />
                    <?php JHTML::_('behavior.mootools'); ?>
                

Replace this code with:

<?php $headerstuff = $this->getHeadData(); unset($headerstuff['scripts']['/media/system/js/mootools.js']); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required