The discussion on https://gerrit.wikimedia.org/r/74662 has ballooned because of this bug.
addModules(), when called on a module that has no JavaScript, is something I'd expect to work everywhere. But, when JS is disabled, evidently the CSS doesn't get loaded, because addModules() loads everything, even CSS, via JavaScript.
It might take some creativity, but is there a way we can load JS and CSS via a More Normal Method that would not necessarily require JavaScript? Maybe, if there's some good reason for not loading CSS if JS doesn't load, we could add a 'requireJavascript' => true option to the module definition array.
This is an optimistic bug report - I suspect that we'll continue doing this "wrong" (in my opinion) for the near future. If I'm thinking about it wrong and there's a better way to be able to rely on the ResourceLoader while maintaining compatibility with no-js clients, I'd love to hear it.
Thanks!
Version: unspecified
Severity: normal