https://bugzilla.wikimedia.org/show_bug.cgi?id=27488
--- Comment #82 from Daniel Friesen <[email protected]> --- (In reply to comment #81) > (In reply to comment #78) > > The gadget needs to have the styles run before the body starts loading > > Actually, due to another bug, the current Gadgets extension loads styles > twice. > > Once from the top without javascript (just the css) and once from the bottom > in > the complete js/css/messages package. > > So you can "rely" on the styles to be there before the content arrives. > > I'm not sure if that helps, but you could use something like .client-nojs / > .client-js (which is in core) to make it more convenient. > > It may not be ideal, but I'm trying to help you within the current system so > you at least have something in the meantime. I actually had a relevant thought while trying to deal with a solution to the fact that we can't use addModules for skin's css. If we added some amount of the modules being loaded in a resource (ie: namely the style/link tag) with something like a data-rl-modules="..." attribute we could use that information to determine what modules are already available on the page. Then we could avoid re-loading css that was already pre-loaded. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
