Error, compatibility with jQuery 3.0
See original GitHub issueThe use with jQuery 3.0 seems to throw this error:
jquery.min.js:4 Uncaught TypeError: a.indexOf is not a function
Replacing .load(function
with .on('load',function
seems to solve the problem
Please read jQuery 3.0 breaking changes: https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed
[Edit] The error encountered on plugin version 3.1.3
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
jQuery Core 3.0 Upgrade Guide
Now that most of the browsers supported by jQuery 3.0 have "use strict" , jQuery is being built with this directive. Your code...
Read more >Error in jquery-3.0.0.js: "Unable to get property 'exports' of ...
I have tried to create a sample using JQuery 3.0, JQuery migrate 3.0.0 and JQuery ui 1.10.3, it seems that everything works well....
Read more >How to upgrade to the latest version of jQuery
Look in the console for those Uncaught ReferenceError: $ is not defined errors. If you don't see one, congratulations you followed step 2 ......
Read more >jQuery UI
Compatibility with recent jQuery versions (up to 3.6): Usage of deprecated jQuery APIs have been removed. jQuery UI 1.13 triggers no jQuery Migrate...
Read more >jQuery 3 compatibility - WordPress.org
Currently the plugin throws an error when combined with jQuery 3.x. ... https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see. Thanks for the feedback 😃
I’ve updated all examples in plugin archive/github but I haven’t updated the ones in the demo as I use older jQuery version. I’ll try to update those too as other people that get the code from there might have the same issue.
@antonkulaga Please check if you also have
.load(function
code in your document and change it to.on('load',function