Intent to Prototype: Document-Policy: expect-no-linked-resources

161 views
Skip to first unread message

Chromestatus

unread,
Sep 10, 2024, 8:39:09 AMSep 10
to blin...@chromium.org, ale...@google.com, dom...@google.com

Contact emails

ale...@google.com

Explainer

https://github.com/explainers-by-googlers/expect-no-linked-resources
https://explainers-by-googlers.github.io/expect-no-linked-resources

Specification

https://explainers-by-googlers.github.io/expect-no-linked-resources

Summary

The expect-no-linked-resources configuration point in Document Policy allows a document to hint to the user agent to better optimize its loading sequence, such as not using the default speculative parsing behavior. User Agents have implemented speculative parsing of HTML to speculatively fetch resources that are present in the HTML markup, to speed up page loading. For the vast majority of pages on the Web that have resources declared in the HTML markup, the optimization is beneficial and the cost paid in determining such resources is a sound tradeoff. However, the following scenarios might result in a sub-optimal performance tradeoff vs. the explicit time spent parsing HTML for determining sub resources to fetch: * Pages that do not have any resources declared in the HTML. * Large HTML pages with minimal or no resource loads that could explicitly control preloading resources via other preload mechanisms available. `expect-no-linked-resources` Document-Policy hints the User Agent that it may choose to optimize out the time spent in such sub resource determination.



Blink component

Blink

Motivation

User Agents have implemented speculative parsing of HTML to speculatively fetch resources that are present in the HTML markup, to speed up page loading. For the vast majority of pages on the Web that have resources declared in the HTML markup, the optimization is beneficial and the cost paid in determining such resources is a sound tradeoff. However, the following scenarios might result in a sub-optimal performance tradeoff vs. the explicit time spent parsing HTML for determining sub resources to fetch: * Pages that do not have any resources declared in the HTML. * Large HTML pages with minimal or no resource loads that could explicitly control preloading resources via other preload mechanisms available. The Document-Policy: expect-no-linked-resources allows a web developer or page to hint to the UA that time spent in linked resource determination can be optimized out, allowing for further performance improvements in loading.



Initial public proposal

https://github.com/WICG/proposals/issues/169

TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



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

No

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://g-issues.chromium.org/issues/365632977

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5202800863346688?gate=5129075870662656

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages