W3C home > Mailing lists > Public > public-web-perf@w3.org > January 2018

Re: Using preload for "async" CSS by changing `rel` trick

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 17 Jan 2018 11:36:06 +0100
Message-ID: <CADnb78hNSyjWfA3sRTY88n5hLF3OnW6QXDfhgydnvhOBn1iLuA@mail.gmail.com>
To: Chris Harrelson <chrishtr@chromium.org>
Cc: Ilya Grigorik <igrigorik@google.com>, Ben Maurer <ben.maurer@gmail.com>, Philip Walton <philipwalton@google.com>, Royi Hagigi <royi@fb.com>, "public-web-perf@w3.org" <public-web-perf@w3.org>
On Tue, Jan 16, 2018 at 7:40 PM, Chris Harrelson <chrishtr@chromium.org> wrote:
> Why not? If the DOM is modified, it should apply its updates on the next
> frame, no?

Making the load event synchronous just if the style sheet happens to
be in a cache seems like a bad API. You effectively change the API
contract of <link> based on an externality.

Furthermore, it would introduce all the problems we're trying to get
rid of by removing synchronous mutation events (at least all of the
problems related to synchronous insertion mutation events).

Received on Wednesday, 17 January 2018 10:36:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 17 January 2018 10:36:34 UTC