[w3ctag/design-reviews] TAG Specification review for viewport height client hint (#615)

Ya ya yawm TAG!

I'm requesting a TAG review of Viewport Height Client Hint

Currently, Responsive Image Client Hints provide a way for origins to obtain the viewport’s width. However, no such attribute exists for viewport height. We’ve observed that to optimize the loading of content that appears in viewport, it is essential for the origins to adapt HTML response based on viewport height as well. Current methods of doing that include content-negotiation through the User-Agent string, but that is suboptimal as it’s indirect, and doesn’t cover all platforms.
We’d like to propose adding a new image hint Sec-CH-Viewport-Height (similar to the existing Sec-CH-Viewport-Width). Similar to other client hints, origins would be able to register the opt-in for viewport-height client-hint via Accept-CH header, and receive the attribute value as part of HTTP request headers. This would enable origins to e.g., inline all the content that’s expected to appear in the viewport, or avoid lazy-loading it, optimizing height-constrained images in the absence of the layout height of the image, support server-side automated art direction ensuring that the whole image is always visible above the fold on height-constrained devices.


  - Explainer¹ (minimally containing user needs and example code): https://github.com/WICG/responsive-image-client-hints/blob/main/Viewport-Height-Explainer.md

  - Specification URL: https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-height and https://wicg.github.io/client-hints-infrastructure/

  - Tests: [wpt folder(s), if available]: Tests not available yet
  - Security and Privacy self-review²: https://docs.google.com/document/d/1WceBPhmHEaoVbYs_MFYYdMpXx5sypxvReXlXxUK-DlE/edit

  - GitHub repo (if you prefer feedback filed there): n/a
  - Primary contacts (and their relationship to the specification):
     Tarun Bansal (@tarunban), Google.
     Yoav Weiss (@yoavweiss), Google.
  - Organization(s)/project(s) driving the specification: Google
  - Key pieces of existing multi-stakeholder review or discussion of this specification: n/a
  - External status/issue trackers for this specification (publicly visible, e.g. Chrome Status): https://chromestatus.com/feature/5646861215989760


Further details:

  - [Yes] I have reviewed the TAG's [Web Platform Design Principles](https://w3ctag.github.io/design-principles/)
  - Relevant time constraints or deadlines: [please provide]
  - The group where the work on this specification is currently being done:
  - The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): 
  - Major unresolved issues with or opposition to this specification: n/a
  - This work is being funded by: Google

You should also know that: n/a

[please tell us anything you think is relevant to this review]: n/a

We'd prefer the TAG provide feedback as (please delete all but the desired option):

  💬 leave review feedback as a **comment in this issue** and @-notify [github usernames]

  🐛 open issues in our GitHub repo for **each point of feedback**

  ☂️ open a single issue in our GitHub repo **for the entire review**



------------------------------------------------------------------------------------
CAREFULLY READ AND DELETE CONTENT BELOW THIS LINE BEFORE SUBMITTING

Please preview the issue and check that the links work before submitting.

In particular, if anything links to a URL which requires authentication (e.g. Google document), please make sure anyone with the link can access the document. We would prefer fully public documents though, since we work in the open.

¹ We require an explainer to give the relevant context for the spec review, even if the spec has some background information. For background, see our [explanation of how to write a good explainer](https://w3ctag.github.io/explainers). We recommend the explainer to be in [Markdown](https://github.github.com/gfm/).

² A Security and Privacy questionnaire helps us understand potential security and privacy issues and mitigations for your design, and can save us asking redundant questions. See https://www.w3.org/TR/security-privacy-questionnaire/.






-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/615

Received on Wednesday, 3 March 2021 22:19:04 UTC