It loads the link even though the content is blank :/
On Fri, Jul 20, 2018 at 11:25 AM Nischay Nahata <nischayn22(a)gmail.com>
Thanks for the reply.
I do use the file cache and yes, there could be performance issues with
purging too many problems at once. But again there's a situation where I
can avoid using Common.css altogether so I think there should be a way to
turn the module off. I don't know what happens if the common.css is empty,
I will try that out.
On Fri, Jul 20, 2018 at 12:04 AM Bartosz Dziewoński <matma.rex(a)gmail.com>
There is one important reason why we use
<link> instead of
<style>…</style>: when the rendered page HTML is cached, e.g. using a
caching proxy like Varnish  or MediaWiki file cache , then if we
used <style>…</style>, you would have to purge every page on the wiki
before changes to MediaWiki:Common.css would actually take effect,
because the CSS would be embedded in the cached HTML.
Using <link> means that it only takes as long as it takes the cached
resource to expire in the users' browsers. (By default, they are set to
expire after 5 minutes.)
If you don't have caching enabled, then of course that wouldn't matter –
but also, if you don't have caching enabled, then that is probably a
much worse performance problem than not embedding the styles :)
Wikitech-l mailing list