ba...@chromium.org, deno...@chromium.org
https://github.com/bashi/early-hints-explainer/blob/main/explainer.md
https://tools.ietf.org/html/rfc8297
https://html.spec.whatwg.org/#early-hints
https://docs.google.com/document/d/1gCh_CnfrJq_VL7aGoq6skc7sn4yn5pKsM0gkHe5B9go/edit?usp=sharing
Support 103 Early Hints informational responses during top-level frame navigation. When a 103 response includes link headers Chromium tries to preload specified resources (including modulepreload) or preconnect to specified origins before the final response is received. This gives Web developers a way to optimize Core Web Vitals such as Largest Contentful Paint (LCP).
https://github.com/w3ctag/design-reviews/issues/638
Issues addressed
Browsers may not understand a 103 response but they are expected to ignore 1xx responses if they don’t understand 1xx responses. Firefox is implementing 103 support.
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 and HTTP/3 thanks to their frame format. Chromium only handles 103 responses over HTTP/2 and HTTP/3.
The HTML and Fetch standards have been updated to handle preload link headers in 103 responses for navigations (whatwg/html#7675, whatwg/fetch#1404). For preconnect there are ongoing efforts to specify the behavior. See “Anticipated spec changes” section below for more information.
Gecko: In development.
WebKit: No signal.
Web developers: Positive. Positive interest and intent of support by popular CDNs (Fastly, Cloudflare). We've been collaborating with partners to evaluate the impact of Early Hints and we observed significant improvements on page loading metrics such as FCP.
Ergonomics
The primary usage of this feature is to send link headers to preload resources or preconnect to servers to improve page load performance. Due to potential security concerns Chromium only handles the first 103 response for the top-frame navigation. See this document for details of restrictions. These restrictions may be relaxed in the future.
Popular HTTP servers and CDNs provide configurations or options to send Early Hints responses.
Security
Request mode and credentials mode are calculated the same as normal preload and preconnect. Preloads triggered by a 103 response follow policies specified in the same 103 response. Chromium only handles the first 103 response and ignores following 103 responses to avoid contradiction policies between these responses and the final response. Chromium doesn’t use preloaded resources triggered by a 103 response when there are conflicting policies between a 103 response and the final response. See the security considerations section of the design doc for more information.
We don’t expect WebView specific problems with this feature.
If a resource is preloaded by Early Hints, the corresponding PerformanceResourceTiming object reports that its initiatorType is "early-hints".
When the document doesn’t use resources preloaded by Early Hints within a few seconds from the window’s load event Chromium will show warning messages (this is under review now).
DevTools lack Early Hints support and we consider adding Early Hints support in DevTools in the future. In the meanwhile developers can use NetLog, WebPageTest, or network protocol analyzers such as Wireshark for debugging.
EarlyHintsPreloadForNavigation
False
https://early-hints.fastlylabs.com/
We would like to ship this feature in M103.
Historically preconnect hasn’t been specified well (whatwg/html#4224). There are ongoing efforts to specify the behavior. For example whatwg/html#7814 specified the behavior of <link rel=preconnect>. whatwg/html#7835 will specify preconnect in link headers and it will cover 103 responses.
https://chromestatus.com/feature/5207422375297024
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.
Contact emails
ba...@chromium.org, deno...@chromium.org
Explainer
https://github.com/bashi/early-hints-explainer/blob/main/explainer.md
Specification
https://tools.ietf.org/html/rfc8297
https://html.spec.whatwg.org/#early-hints
Design docs
https://docs.google.com/document/d/1gCh_CnfrJq_VL7aGoq6skc7sn4yn5pKsM0gkHe5B9go/edit?usp=sharing
Summary
Support 103 Early Hints informational responses during top-level frame navigation. When a 103 response includes link headers Chromium tries to preload specified resources (including modulepreload) or preconnect to specified origins 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
TAG review
https://github.com/w3ctag/design-reviews/issues/638
TAG review status
Issues addressed
Risks
Interoperability and Compatibility
Browsers may not understand a 103 response but they are expected to ignore 1xx responses if they don’t understand 1xx responses. Firefox is implementing 103 support.
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 and HTTP/3 thanks to their frame format. Chromium only handles 103 responses over HTTP/2 and HTTP/3.
The HTML and Fetch standards have been updated to handle preload link headers in 103 responses for navigations (whatwg/html#7675, whatwg/fetch#1404). For preconnect there are ongoing efforts to specify the behavior. See “Anticipated spec changes” section below for more information.
Gecko: In development.
WebKit: No signal.
Web developers: Positive. Positive interest and intent of support by popular CDNs (Fastly, Cloudflare). We've been collaborating with partners to evaluate the impact of Early Hints and we observed significant improvements on page loading metrics such as FCP.
Ergonomics
The primary usage of this feature is to send link headers to preload resources or preconnect to servers to improve page load performance. Due to potential security concerns Chromium only handles the first 103 response for the top-frame navigation.
See this document for details of restrictions. These restrictions may be relaxed in the future.
Activation
Popular HTTP servers and CDNs provide configurations or options to send Early Hints responses.
Security
Request mode and credentials mode are calculated the same as normal preload and preconnect. Preloads triggered by a 103 response follow policies specified in the same 103 response. Chromium only handles the first 103 response and ignores following 103 responses to avoid contradiction policies between these responses and the final response. Chromium doesn’t use preloaded resources triggered by a 103 response when there are conflicting policies between a 103 response and the final response. See the security considerations section of the design doc for more information.
--
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-9MUr5cdGw_x7Gy6B3dxcmpVp9tnXL%2BY%3DDeEXoABNy3bA%40mail.gmail.com.
WebKit: No signal.
Web developers: Positive. Positive interest and intent of support by popular CDNs (Fastly, Cloudflare). We've been collaborating with partners to evaluate the impact of Early Hints and we observed significant improvements on page loading metrics such as FCP.
Ergonomics
The primary usage of this feature is to send link headers to preload resources or preconnect to servers to improve page load performance. Due to potential security concerns Chromium only handles the first 103 response for the top-frame navigation.
That restriction is specified, right? AFAICT, "process early hints headers" is only called from "process a navigate response".
See this document for details of restrictions. These restrictions may be relaxed in the future.
Activation
Popular HTTP servers and CDNs provide configurations or options to send Early Hints responses.
Security
Request mode and credentials mode are calculated the same as normal preload and preconnect. Preloads triggered by a 103 response follow policies specified in the same 103 response. Chromium only handles the first 103 response and ignores following 103 responses to avoid contradiction policies between these responses and the final response. Chromium doesn’t use preloaded resources triggered by a 103 response when there are conflicting policies between a 103 response and the final response. See the security considerations section of the design doc for more information.
Is that specified?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfU3vO5hb3CXXt4mG6HCWPOF7tjCoqvrjOdbW2Q49uiSbw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/8d74545b-dde0-49ce-197d-25ae8dfd4ec2%40chromium.org.
Last I heard, you all wanted to ship in 103. Can you please put the correct number in the status entry?
--
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/0000000000008f7e8905dda6c856%40google.com.