Ticket #7561 (closed enhancement: wontfix)
Manage a plugin registry table
|Reported by:||anonymous||Owned by:|
An issue I found using Jquery plugins on a website managed with a content-centric CMS is its capability to know if a pluggin is already loaded. A nice feature would be to maintain a plugin regsitry list in jQuery core and access the list like $.isRegister(aPlugginId-aPlugginVersion). Plugins compatible with this version are responsible of their own registration.
For example I have a page with 3 code snippets, 1 for rendering an event that require a date picker, and 2 times the same snippet for rendering an image gallery. The first time the snippet for the galery is called it will load the required pluggin. The second time as it will see it's already present in the registry, no need to load the pluggin.
Hope this makes sense