User "Liangent" posted a comment on MediaWiki.r100497. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100497#c25415 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: Fixed in r101827. I was wrong that I thought styles in gadgets are loaded after site and user css (actually they're loaded before those in both ResourceLoader and non-ResourceLoader gadgets), so it's safe to use addModuleStyles. Since addModuleStyles and addModuleScripts don't check dependencies, I have to use addModules, but I kept addModuleStyles for the reason of FOUC. But will this delay page load? I guess a new option for gadgets declaring their styles will cause FOUC so the extension can put their styles on the top of pages. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
