-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
103 Early Hints response processing during navigation #7598
Comments
/cc @noamr |
cc: @ddragana |
Plumb an algorithm to process 103 Early Hints responses. The algorithm is optional. See whatwg/html#7598 for the overall approach.
I think overall this sounds reasonable. I think the tricky bit is figuring out the policy container to be used for any fetches resulting from the 103. How will we deal with CSP, referrer, sandboxing, etc. Another challenge here is that currently Fetch is handed a "client" which doesn't really work for this. (Arguably that setup needs some changes anyway as Fetch needs to pull of what it needs before it goes in parallel and I'm not sure it does for everything.) |
Conceptually, I suggest that a 103 would be somewhat equivalent to a Something like:
(... not sure if the spec needs to involve this fake document in practice, but I'm suggesting it should behave in an equivalent manner) |
Thinking about this more, I believe we are going to need that fake document and environment settings object, which would resolve some fetch-related questions. |
I think our friends here are creating a policy container from a fetch response and reserved client. We might not need a fake document if we piggy back on those. |
Allow specifications to pass an algorithm to fetch to process 103 Early Hints responses. See whatwg/html#7598 for the overall approach. Corresponding HTML PR: whatwg/html#7675. Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Closes #7598. Closes w3c/preload#114.
Closes whatwg#7598. Closes w3c/preload#114.
A 103 Early Hints response is an informational response a server can send before the final response to give a client some hints to optimize rendering pages (e.g. preloading critical subresources such as JS and CSS). For details about the motivation and use cases, please refer to the explainer. TAG review was completed.
103 are typically useful for navigation. We would like to specify 103 processing in the process a navigate fetch algorithm.
We’d propose the following changes in the Fetch standard and the HTML standard:
whatwg/fetch#1225 is the tracking issue for the Fetch standard changes.
Topics to discuss
The following topics should be discussed as next steps if the above proposal makes sense.
Link
headers in Early Hints. This could be similar to 4.2.4.4 ProcessingLink
headers but the processing model isn't well defined (Link
header processing not defined #4224)cc/ @yutakahirano @yoavweiss (Please cc relevant people)
@annevk: What do you think?
The text was updated successfully, but these errors were encountered: