W3C home > Mailing lists > Public > www-style@w3.org > February 2013

Re: Deferring CSS load for unmatched Media Queries

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 05 Feb 2013 00:13:29 +0000
Message-ID: <51104EA9.5040002@mit.edu>
To: www-style@w3.org
On 2/4/13 11:56 PM, Tab Atkins Jr. wrote:
> 1. Essential stylesheets.  All current stylesheets are in this
> category by default.  Essential stylesheets load eagerly, block script
> execution during parsing, etc.

Not all current stylesheets are in this category by default.  For 
example, at least in Gecko alternate stylesheets are not in this category.

The behavior of Gecko for alternate stylesheets is that we do not start 
loading them until there are no pending non-alternate loads (though we 
may be changing things so that they're even lower priority) and we do 
not block script execution on them.

As a separate issue, it's not obvious to me whether it's better to have 
a null OM or a CSSStyleSheet object that throws when you try to examine 
its rules (but not if you just want to check whether it's disabled, 
say).  Gecko currently does the latter, I believe, but there are 
reasonable arguments both ways...

Received on Tuesday, 5 February 2013 00:14:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:26 UTC