Last active
April 23, 2021 04:40
-
-
Save tejas-kr/195ab59eb496ffb5db9a1c804f3fcf59 to your computer and use it in GitHub Desktop.
Javascript code to check if jquery is loaded in the page
This file contains 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
/** | |
* This code is very helpful for people who forget things easily | |
*/ | |
window.onload = function() { | |
if (window.jQuery) { | |
alert('jQuery loaded!'); | |
} else { | |
alert('jQuery not loaded!'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment