Quantcast
Channel: How can I check if a jQuery plugin is loaded? - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by trante for How can I check if a jQuery plugin is loaded?

$
0
0

for the plugins that doesn't use fn namespace (for example pnotify), this works:

if($.pluginname) {    alert("plugin loaded");} else {    alert("plugin not loaded");}

This doesn't work:

if($.fn.pluginname)

Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>