tba...@chromium.org, yoav...@chromium.org, loadi...@chromium.org
https://github.com/WICG/responsive-image-client-hints/blob/master/Viewport-Height-Explainer.md
The new client hint attribute “viewport-height” (similar to existing viewport-width) would provide a way for origins to obtain the viewport’s height. 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.
Spec: https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-height
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. 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.
The new attribute “viewport-height” would enable origins to e.g., inline all the content that’s expected to appear in the viewport, or avoid lazy-loading it. That’s particularly important when it comes to image content.
Even if the above mechanism is an optimization, using Client Hints would enable to benefit from Client Hints Reliability and have that information available on the very-first load.
Blink componentBlink>Loader
https://discourse.wicg.io/t/viewport-height-client-hint-proposal/4993
https://github.com/w3ctag/design-reviews/issues/615
Under review.
Client hints are currently supported only in Blink.
Gecko: Likely to be neutral based on discussion in https://github.com/mozilla/standards-positions/issues/79
WebKit: Likely to be negativebased on previous discussion in https://lists.webkit.org/pipermail/webkit-dev/2020-November/031576.html
Web Developer:
Slightly positive (https://discourse.wicg.io/t/viewport-height-client-hint-proposal/4993).
Strong demand from a partner.
Goals for experimentation
Client hints opt-ins from origins are session-sticky which makes it difficult to experiment with using origin trials since origin trials operate at document-level. We plan to run an A/B experiment using Chrome’s field trial infrastructure. Our plan is to enable the feature for at most 1% users to collect metrics, and ship this feature only if it shows performance improvement for origins that choose to use this feature.
None
Yes
Is this feature fully tested by web-platform-tests?
It will be to the extent possible.
https://bugs.chromium.org/p/chromium/issues/detail?id=1184863
https://bugs.chromium.org/p/chromium/issues/detail?id=1184862
https://chromestatus.com/feature/5646861215989760
This intent message was generated by Chrome Platform Status.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/be498918-60c3-456f-96a6-969749d7fa7fn%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Thanks Chris. Answers inline:> - Can you add a milestone range you'd like to experiment on? e.g. M91-M93?We're hoping to start the experiment in M-91 (I updated this on chromestatus as well).> - You're suggesting an A/B experiment rather than an Origin Trial, since Origin Trials don't work at the networking layer; this makes sense. But since it's an A/B experiment, these headers will be exposed to all sites in the A group. For this reason, would it suffice to test on the Canary/Dev/Beta channels?The developers would need to opt-in to get those headers, and yes, it would be possible for developers to opt-in, and get the headers from the users in group A. However, given the small size of group A, the opt-in would succeed only <5% time on stable channel. I would hope developers would not rely on it as long as we keep group A size small.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/be498918-60c3-456f-96a6-969749d7fa7fn%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5baffbfb-bbe2-4dd6-8598-030c38ede59dn%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/be498918-60c3-456f-96a6-969749d7fa7fn%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/be498918-60c3-456f-96a6-969749d7fa7fn%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5baffbfb-bbe2-4dd6-8598-030c38ede59dn%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/92367d2f-eff8-4d0e-ae30-3b2c5db2053en%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/988c4c0c-1a1c-4e25-94da-0d1f581a0f1bn%40chromium.org.