Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

jQuery 1.12.4 default WP vs 3.x #129

Open
rg- opened this issue Jan 22, 2019 · 0 comments
Open

jQuery 1.12.4 default WP vs 3.x #129

rg- opened this issue Jan 22, 2019 · 0 comments

Comments

@rg-
Copy link

rg- commented Jan 22, 2019

Hi, using WP 5.0.3, by defualt it enqueue jQuery 1.12.4 since my site uses Bootstrap 4, i need jQuery 3.3.1, but using that i recive an error related to deprecated (window).load, here:

/plugins/acf-qtranslate/assets/acf_5/qtranslatex.js

jQuery(window).load(function() {.... line 5)

If i change that for:

jQuery(window).on('load',function() {

Then there´s no error, and by the way i´ve tested on both jQuery versions, 1.12.4 and 3.3.1, function fired, no error.

Yes i know is not the best to change the jQuery version included on WP, but sometimes that´s not posible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant