Intent to Extend Origin Trial: Early Hints preload/preconnect during Navigation

99 views
Skip to first unread message

Kenichi Ishibashi

unread,
Oct 7, 2021, 2:39:38 AM10/7/21
to blink-dev, Yutaka Hirano, Daisuke Enomoto

We would like to extend Early Hints preload/preconnect Origin Trial to M98 (originally planned to end in M96).


Contact emails

ba...@chromium.orgyhi...@chromium.orgdeno...@chromium.org

Explainer

https://github.com/bashi/early-hints-explainer/blob/main/explainer.md

Specification

https://tools.ietf.org/html/rfc8297

Design docs


https://docs.google.com/document/d/1gCh_CnfrJq_VL7aGoq6skc7sn4yn5pKsM0gkHe5B9go/edit?usp=sharing

Summary

Support 103 Early Hints informational responses for navigation. When a 103 response includes <link rel=preload> or other link headers Chromium tries to preload (and/or preconnect, prefetch) specified resources even before the final response is received. This gives Web developers a way to optimize Core Web Vitals such as Largest Contentful Paint (LCP).



Blink component

Internals>Preload

TAG review

https://github.com/w3ctag/design-reviews/issues/638

TAG review status

Pending

Risks



Interoperability and Compatibility

Several servers/proxies may not understand a 103 response. They may treat the 103 response as a part of the final response when the response is sent over HTTP/1.1. The problem is less likely to happen over HTTP/2 thanks to their frame format. Chromium only handles 103 responses over HTTP/2 and HTTP/3.



Gecko: Worth prototyping (https://github.com/mozilla/standards-positions/issues/134)

WebKit: No signal (https://lists.webkit.org/pipermail/webkit-dev/2021-May/031861.html)

Web developers: Positive (https://www.fastly.com/blog/faster-websites-early-priority-hints) Web developers: Positive (https://www.fastly.com/blog/faster-websites-early-priority-hints) Positive interest and intent of support by popular CDNs. We've been collaborating with Fastly to do the preliminary measurement.


Goals for experimentation

Allows web developers to opt-in Early Hints preloads. We use custom page load metrics (FCP, LCP FID) to measure performance impact.



Reason this experiment is being extended

We added preconnect support in M95 based on Web developer's feedback and we are now evaluating the impact of preload and preconnect. We realized that we need more time to evaluate the impact of this feature. We have partners lined up for the feature and we expect to get more data in coming months.

Ongoing technical constraints

None

Debuggability

If a resource is preloaded by Early Hints, the corresponding PerformanceResourceTiming object reports initiatorType is "early-hints". For more details, see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/early-hints.md#checking-early-hints-preload-is-working



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

No

Flag name

EarlyHintsPreloadForNavigation

Requires code in //chrome?

False

Tracking bug

https://crbug.com/671310

Launch bug

https://crbug.com/1197989

Estimated milestones

OriginTrial desktop last95 → 98
OriginTrial desktop first94
OriginTrial android last95 → 98
OriginTrial android first94


Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5207422375297024

Links to previous Intent discussions

Intent to Experiment: https://groups.google.com/u/1/a/chromium.org/g/blink-dev/c/xb_NHDS3twY


This intent message was generated by Chrome Platform Status.

Yoav Weiss

unread,
Oct 7, 2021, 3:27:18 AM10/7/21
to Kenichi Ishibashi, blink-dev, Yutaka Hirano, Daisuke Enomoto
LGTM to extend to M98. 5 milestones overall seems reasonable.

--
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/CAPLXX-8G77uvOt6%3DomTRhQBS%2BcmxB6UaAbeeHiKRRumMPnd8bg%40mail.gmail.com.

Anne van Kesteren

unread,
Nov 2, 2021, 4:47:14 AM11/2/21
to Kenichi Ishibashi, blink-dev, Yutaka Hirano, Daisuke Enomoto
On Thu, Oct 7, 2021 at 8:39 AM Kenichi Ishibashi <ba...@chromium.org> wrote:
> Specification
>
> https://tools.ietf.org/html/rfc8297

When do you expect to make progress on
https://github.com/whatwg/fetch/issues/1225? The RFC doesn't fully
define this feature.

Kenichi Ishibashi

unread,
Nov 3, 2021, 6:54:08 PM11/3/21
to Anne van Kesteren, blink-dev, Yutaka Hirano, Daisuke Enomoto
Hi Anne,

We plan to start working on the spec issue in this quarter.

Thanks,

Anne van Kesteren

unread,
Nov 4, 2021, 5:27:31 AM11/4/21
to Kenichi Ishibashi, blink-dev, Yutaka Hirano, Daisuke Enomoto
On Wed, Nov 3, 2021 at 11:54 PM Kenichi Ishibashi <ba...@chromium.org> wrote:
> We plan to start working on the spec issue in this quarter.

That's great to hear, appreciate the update!
Reply all
Reply to author
Forward
0 new messages