Skip to content

Instantly share code, notes, and snippets.

@tejas-kr
Last active April 23, 2021 04:40
Show Gist options
  • Save tejas-kr/195ab59eb496ffb5db9a1c804f3fcf59 to your computer and use it in GitHub Desktop.
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 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