How to check if a jQuery plugin is loaded
The following snippet is one way to determine if a jQuery plugin is loaded an available. There are probably other ways to achieve the same behavior, however this one never seems to fail me.
1 2 3 4 |
if (jQuery().jcarousel) { // The plugin is here, do something with it. $('.jcarousel-enabled').jcarousel(); } |