Skip to main content
WolfShade
Legend
February 4, 2020
Answered

Question about jQuery versioning

  • February 4, 2020
  • 4 replies
  • 868 views

Hello, all,

 

Our public website was completed in 2015, and is currently using jQuery v1.11.2.  We recently were alerted to a vulnerability that is tied to this version, and were instructed to update to a more recent version.  Since this is a public page, we have decided to not go all the way to v3.x and instead are going to use v2.2.4 as we do not know how much legacy support v3.x has.

 

To my question:  Do I just place the v.2.2.4 .js file in the same folder and change the script src attribute to reflect the newer version?  Or is there anything else I need to do?  This is the first time I've ever needed to update jQuery.

 

V/r,

 

^ _ ^

This topic has been closed for replies.
Correct answer Jon Fritz

If your scripts are compatible with that newer version of the library, that's all you'd need to do to get them running.

Test it out on a duplicate page, if it works, you're done. If it doesn't, you'll need to find updated scripts or rewrite the ones you have. 

4 replies

WolfShade
WolfShadeAuthor
Legend
February 6, 2020

Thanks, guys, for your wisdom.

 

I have added the 2.2.4 min file to the proper folder and updated the src in the header.  It is working in staging, but I haven't pushed to production just yet.  A bit nervous.

 

As far as using the most recent, again, I'm not sure about legacy support, and I know that we have users still using IE10 or IE9 and older versions of FireFox and Chrome.  So I'm sticking to 2.2.4 unless it fails a scan.

 

Thanks, again!

 

V/r,

 

^ _ ^

Nancy OShea
Community Expert
Community Expert
February 4, 2020

IMO, you should use the latest stable release if possible.

 

Test your plugins with 3.4 and jQuery Migrate.  Migrate helps older scripts work with newer libraries.

https://code.jquery.com/jquery-3.4.1.min.js  
https://code.jquery.com/jquery-migrate-3.1.0.min.js

 

If that fails, then try it with version 2x.  See link below for reference.

https://jquery.com/download/

 

If your plugins are still too outdated, find modern replacements.

 

Nancy O'Shea— Product User & Community Expert
WolfShade
WolfShadeAuthor
Legend
February 4, 2020

Thanks, John.  I'll give it a shot.

 

V/r,

 

^ _ ^

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
February 4, 2020

If your scripts are compatible with that newer version of the library, that's all you'd need to do to get them running.

Test it out on a duplicate page, if it works, you're done. If it doesn't, you'll need to find updated scripts or rewrite the ones you have.