Joomla 3.2.0 Hosting Tutorial :: How To Remove Javascript Framework?

The Joomla! Project and Community is excited and proud to announce the immediate availability of Joomla! CMS 3.2.0 Stable.

With literally dozens of new features including:

  • Content version control
  • Many user interface improvements
  • Easy multi-lingual setup for 64 officially supported languages
  • Built-in Joomla! Extensions Finder as an onsite interface to the Joomla! Extensions Directory (that currently lists over 4000 extensions) providing one-click extensions installation
  • Increased security with strong passwords and two step authentication
  • New rapid development framework for new extension coding

Joomla 3.2 is a standard-term support release and is a one-click upgrade (not a migration) from previous Joomla 2.5 and 3 series releases.

As JavaScript’s popularity continues to grow and with it, the surrounding ecosystem of modern libraries & tools, it can sometimes be hard to keep-up, leading to what some describe as JavaScript Fatigue.

This for all of you Joomla! 3.2 Template developers out there.If you’re like us and use Bootstrap in your templates, you’ve probably run into issues where MooTools More & Bootstrap.js don’t play nice.

By default, Joomla! loads a bunch of javascript files that you may not need or want in your template. For many reasons, you’re probably looking for a way to remove them, right?

Here’s a snippet of code (shoutout to this Joomla! Forum post) that we use in some of our templates to remove unwanted JS files:

Just be sure that this code is somewhere before your <jdoc:include type=“head” />.

Additionally, you may want to remove the calls to the JavaScript frameworks from within certain layout files. For instance, by default the mod_finder layout includes Mootools on line 14:

To remove them, create an override in your template and remove the line. Obviously, this will make certain functions in the module, well, not function.

The same can be said for removing JavaScript frameworks in general; if you remove one, it could potentially break something that you didn’t know you needed. It’s safe to assume that most of the core Joomla! modules/components will need MooTools in some capacity—so if you’re removing these frameworks, make sure you know what you’re doing.

Also, one more word of caution: DO NOT MODIFY CORE JOOMLA! FILES. One of the benefits of using Joomla! is output overrides—using overrides will prevent you from overwriting files that could potentially change when the site gets upgraded to a newer version of Joomla!.

 

hostforlifeasp.net revolutionized hosting with Plesk Control Panel, a Web-based interface that provides customers with 24×7 access to their server and site configuration tools. Plesk completes requests in seconds. It is included free with each hosting account. Renowned for its comprehensive functionality – beyond other hosting control panels – and ease of use, Plesk Control Panel is available only to HostForLIFE’s customers. They offer a highly redundant, carrier-class architecture, designed around the needs of shared hosting customers.
Mark Thomas