User "Liangent" posted a comment on MediaWiki.r100497.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100497#c24832
Commit summary:

Move styles in gadgets to the top of pages to avoid flash of unstyled content.
Those styles should be loaded after site and user styles to keep B/C.

Comment:

Styles added by $out->addModuleStyles() are loaded together with other RL 
styles. Gadget modules are in 'other' group, and in OutputPage.php, it says (in 
comments): "So the order has to be other, dynamic, site, private, user" so 
Gadget modules will be loaded firstly if they're added with 
$out->addModuleStyles(). However some of our existing gadgets depend on the 
fact that gadget styles are loaded after site (and maybe user) styles so site 
styles can be overridden. So I have to place gadget styles in HeadItems so they 
can be loaded after other styles which are loaded in CssLinks.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to