JQuery is loaded or not

I recently had a requirement to check whether JQuery is loaded or not. So, I found a snippet on google for that. if ( typeof (jQuery) != "undefined" ){ //jquery is not loaded } else{ //jquery is loaded }

Advertisements