Skip to content

Split out speculation rules prerender and advanced features - #4652

Open
tunetheweb wants to merge 5 commits into
web-platform-dx:mainfrom
tunetheweb:split-speculation-rules-prerender
Open

tunetheweb wants to merge 5 commits into
web-platform-dx:mainfrom
tunetheweb:split-speculation-rules-prerender

Conversation

@tunetheweb

@tunetheweb tunetheweb commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Speculation Rules prefetch has implementations behind flags for Firefox and Safari. They are unsold on prerender yet.

Additionally the core principles of speculations and prefetch is (mostly) merged into the HTML spec, while prerender is still a separate WICG spec.

I think it would be helpful for us to split the Speculation Rules feature in preparation for this so we can signal to developers when prefetch is available while prerender is not.

To me this is similar to View Transitions initially being available as a same document base feature and an additional cross-document feature that came later (not to mention a few other additions to both).

There are also a few more advanced features that are tied to prefetch but that aren't fully specified or implemented. So I've moved those keys under spare for now. We can potentially move them into their own features but would like to see the standardisation process finish for those first.

And there are some BCD keys common to both that we can now support in both thanks to #1173 being solved.

@github-actions github-actions Bot added the feature definition Creating or defining new features or groups of features. label Nov 13, 2026
@tunetheweb

Copy link
Copy Markdown
Contributor Author

CCing in @yoavweiss and @achristensen07 (who worked on WebKit/Safari implementation) and @acreskeyMoz (Gecko/Firefox implementation) in case they have any comments on what I'm proposing here.

@yoavweiss

Copy link
Copy Markdown

SGTM

@acreskeyMoz

Copy link
Copy Markdown

Very much agreed, thank you.

@@ -0,0 +1,28 @@
name: Speculation rules prerender
description: Speculation rules are hints to the browser to proactively download pages in the background so they appear instantly when the user navigates to them.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same description as the (original?) prefetch feature below. I'd really like to see new descriptions for both features, which would help me review the rest of this (e.g., which set of keys for which feature).

@tunetheweb tunetheweb Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot. I went with this:

name: Speculation rules prefetch
description: Speculation rules prefetch hints let the browser proactively download pages in the background so they appear quicker when the user navigates to them.

name: Speculation rules prerender
description: Speculation rules prerender hints let the browser proactively download and prerender pages in the background so they can appear instantly when the user navigates to them.

But open to other suggestions here!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants