How to check if a plugin has been loaded in jQuery?
Posted: February 9th, 2010 | Author: Dax | Filed under: Javascript | Tags: jQuery | 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