https://bugzilla.wikimedia.org/show_bug.cgi?id=31150

       Web browser: ---
             Bug #: 31150
           Summary: Make it possible to register RL modules using Gadgets
                    extension
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: need-review, patch
          Severity: enhancement
          Priority: Unprioritized
         Component: Gadgets
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 9097
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9097
Patch adding a new gadget attribute: hidden

Before ResourceLoader was created Gadgets extension offered nice way to reuse
common (library) code in gadgets - it is possible that two gadgets use a same
js/css page. Such page is loaded only once.

New implementation based on ResourceLoader duplicates code for every gadget. So
the same library will be downloaded and executed many times.

I would like to request a new attribute 'hidden' for gadgets, which should not
be displayed in preferences. This attribute allows creating ResourceLoader
modules which can be referenced by dependecies parameter.

Example use case:
* awesomeLibrary [ResourceLoader | hidden] | fileA.js | fileB.js |
thisLibraryHasStyle.css
* awesomeGadget-1 [ResourceLoader | dependencies=ext.gadget.awesomeLibrary ] |
awesomeGadget-1.js
* awesomeGadget-2 [ResourceLoader | dependencies=ext.gadget.awesomeLibrary ] |
awesomeGadget-2.js

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to