[jQuery] How to test if plugin X is loaded ?
Hello,
I'd like to be able to test if a specific plug in is loaded before
calling some of its properties (to avoid throwing an error).
Second question, is it possible to load it if missing ?
Use case:
I have a bit of template that have a sortable table of users, and
another one that list groups. They both have a sortable table, and
might be included into the same page or used separately.
I'd rather not load on all the pages the sortable table plugin, so I
have to be able to detect on each of these template if the plugin is
already loaded or if I have to load it (or not call the .tableSorter()
method).
Any suggestion ?
Thanks in advance,
X+