Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialnico dev
20,364 PointsHow to include the noConflict() method if you have another js file
Hi community,
I was checking the really interesting links to jQuery noConfict() method. But the thing is most examples there seems to be about the usage of scripts within the HTML file.
What about if you have another file like app.js, you load the jQuery from the CDN, and then you want to add the noConflict() method to avid conflicts with, say, another library you use?
Where do you call the mentioned method? At the beginning of the app.js before your jQuery code? After the CDN script in the index.html?
Not that I fully know (yet) how to use other external libraries either, but just out of curiosity and in case I need it, I'd love to learn how to do it properly.
Thanks in advance for your guide on that one!