NOTE: I know similar questions have already been asked here and here, but I\'m looking for additional clarification as to how to make this work or good reasons for avoid
Possible? Yes, in the same way that it's possible to run jQuery and another framework that uses the name $
at the same time. Include one copy of jQuery and assign it to a new name using noConflict
, then do the same to another copy.
A good idea? Really no, in the same way that running jQuery and another framework at the same time isn't a good idea, only more so. jQuery is a far-reaching, invasive framework. If two instances of jQuery start mutating the same element (and versions of jQuery before 1.4 are very promiscuous about what elements they touch), they are likely to confuse each other with unpredictable, timing-sensitive and undebuggable side-effects.
If at all possible, updating all the code to run under the latest jQuery is by far the better route. This really shouldn't be that difficult; the jQuery devs haven't broken much that code should ever have relied on in the first place.