Created
November 22, 2012 08:01
-
-
Save Macagare/4129901 to your computer and use it in GitHub Desktop.
Javascript: Check if jquery exists
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
if (jQuery) { | |
// jQuery is loaded | |
} else { | |
// jQuery is not loaded | |
} | |
if (typeof jQuery == 'undefined') { | |
// jQuery is not loaded | |
} else { | |
// jQuery is loaded | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment