Is there a particular reason for old jQuery version? Safe to replace?

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
digitaltoast
Registered User
Posts: 103
Joined: Thu Oct 18, 2007 9:33 am

Is there a particular reason for old jQuery version? Safe to replace?

Post by digitaltoast » Sun Feb 18, 2018 6:01 pm

While poking around, I notice that even the latest 3.2.2 download contains jQuery 1.11.9 from January 24, 2014.
The current version of jQuery is 3.3.

I'm happy to just go ahead and drop in the latest version, but is it likely to break anything?

Yes, I know the obvious answer is "why don't you just try it", but jQuery is used in so many places... I was just wondering if there was a good reason for the 4 year old version, or whether updating it had just slipped by (and if so, should I file a ticket as a reminder for next version?).

Thanks.

User avatar
Sajaki
Registered User
Posts: 1347
Joined: Mon Mar 02, 2009 1:41 pm
Name: Andreas
Contact:

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by Sajaki » Tue Feb 20, 2018 4:46 pm

Interesting question, i just noticed it now too.

User avatar
david63
Jr. Extension Validator
Posts: 14337
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by david63 » Tue Feb 20, 2018 7:06 pm

I might be wrong here but I think I read somewhere that some of the JQuery code that is in use with phpBB is incompatible with later versions and needs to be re worked. Also if phpBB does not need any of the new features in JQuery then there is little need to upgrade it - although that may not necessarily be true with some extensions.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
primehalo
Former Team Member
Posts: 2769
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by primehalo » Thu May 17, 2018 5:39 am

In the assests/javascript/core.js file they use $(window).load(phpbb.lazyLoadAvatars) and that .load() was removed from Jquery 3, but it was always just a shortcut for .on('load', fn) anyways so that one is easy to fix.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: Google [Bot] and 23 guests