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

On Wed, Jan 17, 2018 at 2:36 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> 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.
>

I see, ok. I think you're suggesting that the load event should be async. I
agree.


>
> 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).
>
>
> --
> https://annevankesteren.nl/
>

Received on Wednesday, 17 January 2018 18:56:49 UTC