Add external <script type=speculationrules>
Add external
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.
https://github.com/WICG/nav-speculation/issues/348
Spec changes:
-
Add a row for external speculation rules in the attributes table of 4.12.1 The script element
-
During prepare the script element, handle the case where
srccontent attribute is present andtypeis"speculationrules" -
Define a "fetch speculation rules" algorithm to be used by both the external script and 7.6.3 The
Speculation-Rulesheader sections.
- [ ] At least two implementers are interested (and none opposed):
- …
- …
- [ ] Tests are written and can be reviewed and commented upon at:
- …
- [ ] Implementation bugs are filed:
- Chromium: https://issues.chromium.org/issues/40170951
- Gecko: …
- WebKit: …
- Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
- Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
- [ ] Corresponding HTML AAM & ARIA in HTML issues & PRs:
- [ ] MDN issue is filed: …
- [ ] The top of this comment includes a clear commit message to use.
(See WHATWG Working Mode: Changes for more details.)
/scripting.html ( diff ) /speculative-loading.html ( diff ) /webappapis.html ( diff )