Check if jQuery plugin is loaded

The previous post checked if jQuery is loaded, now it is time to check if particular jQuery plugin is loaded. Checking if plugin exists or if plugin has been already loaded is useful if you are writing your jQuery code that depends on that plugin. Here is how to check if some jQuery plugin is loaded or not: if(jQuery().pluginMethod) {
//jQuery plugin exists
} else {
//jQuery plugin DOES

Comments

Popular posts from this blog

Genuine Windows 7 Ultimate: The GENUINE Windows 7 activator for x32 and x6480

Types and forms of imitation gemstone and manufactured

7 Tips before you buy detectors for gold and treasures and minerals