Checking if a jQuery Plugin is Loaded

Here's a little snippet for checking if a plugin is loaded at run-time.

if( $.isFunction( $.fn.myPluginFnName) ){
    $("a").myPluginFnName({ //my settings });
}

Leave a Reply

Your email address will not be published. Required fields are marked *