Created
August 16, 2018 18:20
-
-
Save xy0/e885f3442aa2afd89b6aaf87e7bae8d8 to your computer and use it in GitHub Desktop.
test for jQuery support
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
// test for jQuery | |
// | |
if ('undefined' == typeof window.jQuery) { | |
console.error('~jQuery is required') | |
} else { | |
(function($){ | |
$(document).ready( function(){ | |
// jQuery loaded | |
}); | |
})(window.jQuery); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment