Print

Prevent loading of MooTools to save 60-70 KB in Joomla 3

When Mootools is not being used on the frontend you can prevent loading by opening:

libraries/cms/html/behavior.php

At around line 63 you can wrap the Mootools loading statement as follows:

  1. //if we are not using mootools on the frontend we can prevent it from being loaded
  2. if (Jfactory::getApplication()->isAdmin()) {
  3. JHtml::_('script', 'system/mootools-' . $type . '.js', array('version' => 'auto', 'relative' => true, 'detectDebug' => $debug));
  4. }
//if we are not using mootools on the frontend we can prevent it from being loaded if (Jfactory::getApplication()->isAdmin()) { JHtml::_('script', 'system/mootools-' . $type . '.js', array('version' => 'auto', 'relative' => true, 'detectDebug' => $debug)); }

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Access Denied error when logging into Joomla frontend

On a few store setups I've run into this.  Upon logging in to the frontend you get an access...