I\'m just looking for a simple javascript that can check to see if the jQuery library is already loaded and if not, loads it.
Thanks in advance if you have a solutio
if (typeof jQuery == 'undefined') { // jQuery is not loaded => load it: var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'; document.getElementsByTagName('body')[0].appendChild(script); }