The difference between a thought & a decision…is an ACTION!

Check jQuery Plugin is loaded before use

Posted in   jQuery
It is good practice to check that a plugin is loaded before trying to use it, thankfully this is very simple as plug-ins are basically namespaces inside of jQuey so you can do the following: [code language="javascript"]if($().pluginName) { // Add any plugin specific code here }[/code]

comments powered by Disqus