[whatwg/fetch] Proposal: `Viewport` header for early hints (Issue #1640)

See WICG proposal: https://discourse.wicg.io/t/proposal-viewport-http-header/3233/6

Currently using the `media` attribute in early hints makes them no-longer early, as they would have to wait for the document to be loaded and the first HTML chunk to be parsed to know if the media matches, as media matching relies on the viewport meta-tag.

It was proposed that we add a `Viewport` header, with the same string as the viewport meta tag, that hints the UA about the upcoming actual viewport, allowing us to resolve media-dependent early hints early.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1640
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1640@github.com>

Received on Monday, 24 April 2023 09:03:17 UTC