-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the documented ready pjax:end
does not work with Jquery 3.4.1 or 2.2.4
#715
Comments
Hi there, You can try using the jQuery Migrate Plugin to add in support for any missing jQuery methods or properties that were removed as jQuery was developed into newer versions. In my case, I was receiving errors regarding |
@drewminns i aint getting any errors on console i dont think jquery migrate could work in this situation other than the one you pointed out you were facing |
Just dealt with this myself - I wound up doing something like this:
I went to file a PR to the README here, but realized the |
@amywieliczka |
I found this to be the easiest option
basically triggers the events attached to |
The documented code does not work as mentioned
The above code does not call the
initializeMyPlugin()
on the first page load with jquery 3.4.1 or jquery-2.2.4,i am using the following piece of of code
and the
loader()
function is never called on the first page load, only called onpjax:end
. i am using this code in Yii2 framework and the output is like belowThe text was updated successfully, but these errors were encountered: