As Paul points out this is how it is supposed to work.
Use $out->addModuleStyles for the most important styles. Any styles that are only used alongside javascript modules should be loaded dynamically and added to the page using $out->addModules.
On Wed, Jun 5, 2013 at 6:05 AM, Paul Selitskas p.selitskas@gmail.com wrote:
Why so many question marks? :)
There is OutputPage::addModuleStyles(), it's said that it enables module CSS files via <link /> tags instead of loading it by means of JavaScript. Iirc, it works right like advertised.
On Wed, Jun 5, 2013 at 3:43 PM, vitalif@yourcmc.ru wrote:
Hello!
I've got a serious issue with ResourceLoader.
WHAT FOR it's made to load extension ____styles_____ DYNAMICALLY using JavaScript?!!!!
It's a very bad idea, it leads to page style flickering during load. I.e. first the page is displayed using only skin CSS and then you see how extension styles are dynamically applied to it. Of course it's still rather fast, but it's definitely noticeable, even in Chrome.
Why didn't you just output <link rel="stylesheet" href="load.php?<ALL MODULES>" /> ??????????
Am I free to implement it and submit a patch?????
-- With best regards, Vitaliy Filippov
______________________________**_________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- З павагай, Павел Селіцкас/Pavel Selitskas Wizardist @ Wikimedia projects _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- Jon Robson http://jonrobson.me.uk @rakugojon