Intent to Prototype: External <script type=speculationrules>

17 views
Skip to first unread message

Chromestatus

unread,
5:29 PM (3 hours ago) 5:29 PM
to blin...@chromium.org, vizl...@microsoft.com
Contact emails
vizl...@microsoft.com

Explainer
No information provided

Specification
https://github.com/whatwg/html/pull/11697

Design docs
No information provided
https://docs.google.com/document/d/10-K0musUNrRJISRl7cNS4cXJGnhjEapwRf_m_ci2qFg/edit?usp=sharing

Summary
Allows a speculation rules script element to have a src pointing to a file of speculation rules, enabling developers to easily reuse a set of speculation rules across HTML documents.

Blink component
Internals>Preload

Web Feature ID
speculation-rules

Motivation
Allows developers to easily reuse speculation rules across documents by providing the src in the HTML script element of type "speculationrules". Developers expect this functionality to be supported and currently have to use a classic external script to inject the speculation rules as a workaround. https://github.com/WICG/nav-speculation/issues/348

Initial public proposal
https://github.com/whatwg/html/pull/11697

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/40170951

Estimated milestones

No milestones specified



Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

This change was meant to be part of the base speculation rules HTML spec change for completeness. See https://github.com/whatwg/html/issues/11123#issuecomment-3336819191

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/4868908869877760?gate=5158666825236480

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