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:
1 2 |
//Remove MooTools unset($doc->_scripts[JURI::root(true) . '/media/system/js/mootools-core.js']); |
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:
1 |
JHtml::_('behavior.framework'); |
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!.
- Google Penalty Your Site? How to Check It? - February 8, 2021
- SEO Tips :: How Social Media Activity Promotes Your Business - June 24, 2016
- Blogging Tips :: Speed Up your WordPress Site in 10 Ways - June 22, 2016