Allows documents to declare their support for new loading modes, such as upcoming enhanced privacy prefetching and prerendering. https://github.com/jeremyroman/alternate-loading-modes/blob/gh-pages/opt-in.md
Because prerendering fetching modes intentionally obscure the user's identity, the response document cannot be personalized for the user. If it is used when the user navigates, the user will notice that they are not logged in (even if they should be), and other surprising behavior. Similarly, prerendering browsing contexts allow HTML parsing, subresource fetching, and script execution, but such actions are restricted to avoid identifying the user or causing user-visible annoyance. Pages designed with these restrictions in mind can "upgrade" themselves when they load, by personalizing based on data in unpartitioned storage and by fetching personalized content from the server. But existing web pages are unlikely to behave well with these restrictions today. (And, it is impractical for user agents to distinguish such pages.) As such, we propose a lightweight way for a page to declare that it is prepared for such prerendering, and will, if necessary, upgrade itself when it gains access to unpartitioned storage and other privileges.
None
Gecko: No signalImplementation design doc is under review.On Wed, Oct 21, 2020 at 2:41 PM Jeremy Roman <jbr...@chromium.org> wrote:Contact emails
jbr...@chromium.orgExplainer
https://github.com/jeremyroman/alternate-loading-modes/blob/gh-pages/opt-in.mdSpecification
NoneSummary
Allows documents to declare their support for new loading modes, such as upcoming enhanced privacy prefetching and prerendering. https://github.com/jeremyroman/alternate-loading-modes/blob/gh-pages/opt-in.md
Blink component
Blink (at least for now; will likely move to Internals>Preload, Blink>Portals, or a new component)Motivation
Because prerendering fetching modes intentionally obscure the user's identity, the response document cannot be personalized for the user. If it is used when the user navigates, the user will notice that they are not logged in (even if they should be), and other surprising behavior. Similarly, prerendering browsing contexts allow HTML parsing, subresource fetching, and script execution, but such actions are restricted to avoid identifying the user or causing user-visible annoyance. Pages designed with these restrictions in mind can "upgrade" themselves when they load, by personalizing based on data in unpartitioned storage and by fetching personalized content from the server. But existing web pages are unlikely to behave well with these restrictions today. (And, it is impractical for user agents to distinguish such pages.) As such, we propose a lightweight way for a page to declare that it is prepared for such prerendering, and will, if necessary, upgrade itself when it gains access to unpartitioned storage and other privileges.
Initial public proposal
https://github.com/WICG/proposals/issues/2TAG review
None