jQuery.noconflict does not always resolve conflicts with other versions of jQuery loaded #79
Comments
Fixed in 2018.03 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a timing issue. Some other version of jQuery is loaded, with a plugin that does something asynchronous. Then my version of jQuery gets loaded, and the asynchronous action occurs before I call noconflict. The plugin finds a version of jQuery on which it is not loaded and crashes.
To fix it, I modified my version of jQuery such that it never defines a global $ or jQuery variable. It defines spefjQuery, which I will use, and I've modified all of my plugins to use it also. This way, SPEasyForms can peacefully co-exist with any other versions of jQuery that might get loaded.
The text was updated successfully, but these errors were encountered: