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

Re: Media Queries and optimizing what data gets transferred

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 25 Jan 2013 10:28:55 -0800
Message-ID: <CAAWBYDDqp9=DVHLoGfYTmHwL21EkTT3AzXuq88xrnOnb22a3fg@mail.gmail.com>
To: Andy Davies <dajdavies@gmail.com>
Cc: Henri Sivonen <hsivonen@iki.fi>, www-style list <www-style@w3.org>, Ilya Grigorik <ilya@igvita.com>
On Fri, Jan 25, 2013 at 10:01 AM, Andy Davies <dajdavies@gmail.com> wrote:
> My reading of the spec suggests that the UA could choose to defer the
> non-applicable stylesheets forever but there may be performance issues with
> that in some circumstances.

As Boris has explained, it's not performance issues, but rather author
expectations.  The average author expects a CSSOM to exist for all the
stylesheets in the page, and when the set of matched MQs changes, for
the styles to change at the same time, not a network-roundtrip later.
If any browser *did* defer them indefinitely by default, they'd get
compat bugs.

~TJ
Received on Friday, 25 January 2013 18:29:42 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT