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

Re: Deferring CSS load for unmatched Media Queries

From: Yoav Weiss <yoav@yoav.ws>
Date: Tue, 5 Feb 2013 09:54:18 +0100
Message-ID: <CACj=BEibitMrh2K=fCi5R865JmjnannFp-5JA9TmF6tj6MfcHA@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>
Yes, this is an accurate description.

On Tue, Feb 5, 2013 at 12:56 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> So, it sounds like you want to delineate three distinct categories of
> stylesheets:
> 1. Essential stylesheets.  All current stylesheets are in this
> category by default.  Essential stylesheets load eagerly, block script
> execution during parsing, etc.
> 2. Low-priority stylesheets.  These are used on the page, but aren't
> important to load quickly.  (That is, a FOUC is okay, or maybe you
> won't add the elements that need the style until after you're sure the
> style has loaded.)  To handle potential race issues with page script,
> the OM for these stylesheets will be nulled until the author
> explicitly requests them, even if the sheet has already loaded.
> 3. High-prio but optional stylesheets.  These are necessary early in
> the page, but may not be used, due to MQs.  If the MQ for them is
> false on page load, they shouldn't load at all until the MQ becomes
> true.  I suspect these would have the same null OM until requested.
> Is this accurate?
> ~TJ
Received on Tuesday, 5 February 2013 08:54:46 UTC

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