Skip to content

Docs: prerender pages with Speculation Rules - #42830

Merged
mdo merged 2 commits into
v6-devfrom
docs/speculation-rules
Aug 12, 2026
Merged

Docs: prerender pages with Speculation Rules#42830
mdo merged 2 commits into
v6-devfrom
docs/speculation-rules

Conversation

@mdo

@mdo mdo commented Aug 12, 2026

Copy link
Copy Markdown
Member
  • Add Chromium Speculation Rules (moderate eagerness) so likely next docs pages prerender on hover/intent
  • Defer Fathom until prerender activation so unused prerenders do not inflate pageviews

Closes #41907

@coliff

coliff commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

yeah! this is great. I think the Speculation Rules feature will come to Safari at some point too (it's under a feature flag at the moment).

mdo added 2 commits August 12, 2026 08:08
Docs navigations wait on a full page load even when the next
page is already clear from hover or intent.

Add Chromium Speculation Rules with moderate eagerness, and
defer Fathom until prerender activation so unused prerenders
do not inflate pageviews.

Closes #41907
The Speculation Rules analytics script failed docs-prettier-check
because the inline script attributes were on one line.
@mdo
mdo force-pushed the docs/speculation-rules branch from e23a1ce to 1c8a88f Compare August 12, 2026 15:09
@mdo mdo added this to v6.0.0 Aug 12, 2026
@mdo
mdo merged commit b18d6ee into v6-dev Aug 12, 2026
12 checks passed
@mdo
mdo deleted the docs/speculation-rules branch August 12, 2026 15:14
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants