How to check if a plugin has been loaded in jQuery?

Posted: February 9th, 2010 | Author: | Filed under: Javascript | Tags: | No Comments »

This tutorial illustrates how to check if a plugin exists or if plugin has been already loaded usingĀ  jQuery. This is particularly useful if you are writing your jQuery code that depends on that plugin.

if(jQuery().plugin_name) {
// plugin exists
} else {
// plugin not loaded
}


Leave a Reply