It takes one minute to make someone's day, and one word to destroy someone's life.

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