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
You should not do this what so ever, $.noConflict()
won't really help you in all cases.
This is because, internally, jQuery uses the alias name jQuery
so forget about
any dollar sign $
re-assinging... if you will use any code that's using jQuery like this:
jQuery('div').doSomethingDepricated()
then it will use the last defined jQuery loaded in the page.
Now, if you use a plugin, which only works with old jQuery, and internally
it's written only using jQuery
alias (not $
), then it will break.
If you really want to use 2 jQuery scripts with different versions, you can do
search and replace on the 'jQuery' name on one of them, and change it to something else,
then you can also re-assign it do any alias name via no-conflict method if you wish.