Bug Tracker

Opened 12 years ago

Closed 12 years ago

#7561 closed enhancement (wontfix)

Manage a plugin registry table

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: needsreview Cc:
Blocked by: Blocking:

Description

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

Change History (2)

comment:1 Changed 12 years ago by snover

Keywords: needsreview added

comment:2 Changed 12 years ago by SlexAxton

Resolution: wontfix
Status: newclosed

This seems like something you'd want to do with a dependency management solution like requirejs or stealjs. jQuery currently isn't throwing its cards into that game, but may in the future, but as a full system, not as a specifically plugin registration system. You could build this as a plugin though.

Note: See TracTickets for help on using tickets.