Newer Versions of Jquery

Permalink
I have noticed that the core jquery library hasn't been updated in a while. Concrete 8.3.1 is still using jquery 1.11.3.

I realize updating jquery to a newer version (such as 2 or 3) could break some things, including addons and other functionality.

Are there any plans to upgrade jquery? How "safe" is it to use a newer version of jquery?

PineCreativeLabs
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi PineCreativeLabs,

I believe jQuery 1.x is being used because it supports older browsers like Internet Explorer 8 and the significant work to migrate and test a new version. For these reasons, I don't think there are any immediate plans to switch to jQuery 3.x.

This page describes breaking changes and migration:
https://jquery.com/upgrade-guide/3.0...

The most current version of jQuery 1.x is 1.12.4, so we should update to that.

Another option is to override the jQuery 1.x asset with another version. There are instructions for overriding assets in app.php.
https://github.com/concrete5/concrete5/blob/develop/application/boot...
Darshana101 replied on at Permalink Reply
@MrKDilkington

Thanks for the solution. Once we made a change to `application/bootstrap/app.php`, will it be overridden if we update Concrete5 ? In other words, do we have to make that change again?

Sorry I'm new to Conrete5.

Thanks in Advance.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Darshana101

Changes made to files within the "application" folder will not be lost when updating concrete5 (an exception would be files in the "cache" folder). You should avoid making changes to files within the "concrete" and "updates" folders.

There are plans to update to jQuery 3 in the near future.
"Upgrade JQuery to 3.x #6466"
https://github.com/concrete5/concrete5/issues/6466...
Darshana101 replied on at Permalink Reply
Thanks @MrKDilkington ... I appreciate your answer.

Cheers!