Created
April 21, 2013 12:02
-
-
Save fakiolinho/5429369 to your computer and use it in GitHub Desktop.
jQuery: jQuery Existence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Check if jQuery already exists --> | |
<script type="text/javascript"> | |
(function() { | |
if(window.jQuery === undefined) | |
{ | |
document.write('<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"><\/script>'); | |
} | |
else | |
{ | |
jQuery = window.jQuery; | |
} | |
}()); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment