Skip to content

Support external <script type=speculationrules> #604

Open

Description

@vickiez

WebKittens

No response

Title of the proposal

Support external <script type=speculationrules>

URL to the spec

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

URL to the spec's repository

https://github.com/whatwg/html/

Issue Tracker URL

No response

Explainer URL

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

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#1343

WebKit Bugzilla URL

https://bugs.webkit.org/show_bug.cgi?id=305428

Radar URL

No response

Description

Currently speculation rules can only be added by inline script or HTTP response header. Developers expect to also be able to provide a script src so that speculation rules can be easily reused across documents.

The goal is to enable developers to easily reuse speculation rules, especially in cases where web developers don't have meaningful control over the headers (common for statically hosted pages).

This change was meant to be part of the base speculation rules HTML spec change for completeness. See whatwg/html#11123 (comment)

Activity

  1. added
    topic: html
    from: Google
    on Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    from: Googletopic: htmlvenue: WHATWG HTML Workstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions