In Joomla 3.x jQuery is coming by default with Joomla, but the version is a bit outdated (v.1.8.3) and I have a script that needs a newer version.
What can I do?
In Joomla 3.x jQuery is coming by default with Joomla, but the version is a bit outdated (v.1.8.3) and I have a script that needs a newer version.
What can I do?
In your template you can also override the jQuery file.
Like this:
JOOMLA_ROOT/templates/YOURTEMPLATE/js/jui/jquery.min.js
Where jquery.min.js is a newer version of jQuery.
That way Joomla will load your file and not the default version when using JHtml::_('jquery.framework');
Caution: Test well, so that you don't have other issues with the newer jQuery version.
Credits: Thanks Michael.
If you are not satisfied with the @Lodder's method you could try this below. I think it caters your requirement. You are able to control your jQuery & jQuery UI versions.
http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327
With Joomla 3.x, the jquery.js and jquery.min.js files are located in:
JOOMLA_ROOT/media/jui/js/
Download jquery.js v1.10.2 (uncompressed)
Download jquery.min.js v1.10.2 (compressed)
Simply download both, rename them so that they have the same file names, then upload to the location provided above.
Hope this helps
1.10.2
in 3.2. But this is why overrides exist: not to get surprised by a update. –
Dornick © 2022 - 2024 — McMap. All rights reserved.
JHtml::_('jquery.framework');
imports jQuery frommedia/jui/js
, not the template folder. – Supposed