Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joomla 3 - How to override jQuery with newer version?

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?

like image 857
Valentin Despa Avatar asked Sep 25 '13 08:09

Valentin Despa


2 Answers

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.

like image 190
Valentin Despa Avatar answered Nov 15 '22 05:11

Valentin Despa


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

like image 39
Techie Avatar answered Nov 15 '22 07:11

Techie