Preventing jQuery From Loading More Than Once
There are many times when, becuase you are including 3rd party files, jQeury may get loaded more than once. This is not recommended, and loading jQuery again wipes all the jQuery enviroment variables, which can break things.
Here is a easy way to only load jQuery if it has not already been loaded.
window.jQuery || document.write('<script src="js/jquery.min.js">')
Posted: January 6th, 2014 at 7:45 am