Repository navigation
Split out speculation rules prerender and advanced features - #4652
Open
tunetheweb wants to merge 5 commits into
Open
tunetheweb wants to merge 5 commits into
tunetheweb wants to merge 5 commits into
Conversation
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. |
|
SGTM |
|
Very much agreed, thank you. |
ddbeck
requested changes
Nov 16, 2026
| @@ -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. | |||
Collaborator
There was a problem hiding this comment.
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).
Contributor
Author
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
sparefor 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.