← Back to release summary

Supports-Loading-Mode opt-in

Category
Performance
Type
New or changed feature
Status
No active development (Chrome No active development)
Intent stage
Start prototyping

Summary

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/main/opt-in.md

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.

Standards & signals

Ecosystem

Explainers: https://github.com/jeremyroman/alternate-loading-modes/blob/gh-pages/opt-in.md

View on chromestatus.com