Just because you're doing a lot more, doesn't mean you're getting a lot more done!

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