Re: [whatwg/fetch] Process subresource link headers (PR #1409)

Thinking about this again, I believe this should be done inside `fetch` and not at the call sites, as this should also work with preloads - `<link rel=preload as=style>` where the response has link headers should work the same as `<link rel=stylesheet>` and `@import` in CSS, and putting this in each of the call sites would require something like "fetch stylesheet" and above fetch that preload knows about.

Also, we need to be careful not to allow preload semantics that styles are not capable of creating themselves - e.g. the `blocking` attribute or loading fonts with a `crossorigin` attribute that's not `anonymous`.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1409#issuecomment-1107878277
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1409/c1107878277@github.com>

Received on Sunday, 24 April 2022 16:56:49 UTC