Skip to content

Instantly share code, notes, and snippets.

@xy0
Created Aug 16, 2018
Embed
What would you like to do?
test for jQuery support
// 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