I am currently working on a solution to embed a third-party page into my site using ajax/jquery.load() to avoid using iframes (CORS requirements are already handled by the third party).
My dilemma lies in the fact that the main host site loads jquery 1.x and other libraries, while the third-party page loads jquery 2.x and conflicting libraries.
How can I restructure the JavaScript on the third-party page so that it is contained within a shielded child scope instead of the global scope?
Is wrapping everything in function(){} sufficient? And how would I access methods/variables within this child scope on the third-party page?
Please advise if more information is needed for further assistance...