Skip to content

jQuery.noconflict does not always resolve conflicts with other versions of jQuery loaded #79

Closed
@mcsheaj

Description

@mcsheaj

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions