move jQuery to new namespace
jQuery.noConflict lets you change the jquery namespace after it has been loaded but I think I need a way to do this before it is loaded.
Here is my use case.
- I have a widget
- It can be placed on any site
- Those sites may be running jquery, prototype or other libraries.
To avoid conflicts we wrote our own library but rather than maintain that it would be nice to leverage JQuery since we all know and love it.
One thought is to save a copy of jquery.js, rename the namespace, remove $ alias and then minify.
Is there a better way?