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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from [email protected] ---
This double loading is going to occur with gadgets and the
'mediawiki.ui.button' module. We recommend gadgets explicitly load their
required modules; we will probably add addModuleStyles( 'mediawiki.ui.button' )
on all pages so that simple templates like {{Blue button}} work without
JavaScript. So the button CSS will be added to a style tag in the DOM by the
former and added as a link by the latter.

The fix could be to add a separate mw.loader.loadCSS/usingCSS() function that
can check to see if the CSS has already been loaded using addModuleStyles.

-- 
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