- From: Matt Falkenhagen <notifications@github.com>
- Date: Sun, 13 Jun 2021 19:53:47 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 14 June 2021 02:54:24 UTC
Currently prefetch/prerender use the empty string as the destination, as documented at the note at https://fetch.spec.whatwg.org/#concept-request-destination. Is there any benefit known to doing so, or would it be better for these features to set a destination? There does seem to be an `as` attribute on `<link rel>`: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as. So it could make sense for, e.g., `<link rel=preload as=audio>` to have destination "audio" and "initiator" prefetch. And, e.g., `<link rel=prerender>` or the newly proposed [speculationrules](https://github.com/jeremyroman/alternate-loading-modes/blob/main/triggers.md) could result in initiator "prerender" and destination "document". Related is the discussion at https://github.com/w3c/resource-hints/issues/74 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1252
Received on Monday, 14 June 2021 02:54:24 UTC