Crawling, robots & indexing directives

Speculation Rules API (Prerender & Prefetch)

Modern W3C/Chrome JSON specification (replacing legacy <link rel='prerender'>) that instructs Chrome to prefetch or fully prerender likely next internal navigations on hover/pointerdown—slashing real-user CrUX LCP.

Verified

Syntax / Example

<script type="speculationrules">
{"prerender":[{"where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":"/logout/*"}}]},"eagerness":"moderate"}]}
</script>

Verify On A Live URL

curl -sL https://example.com/ | grep -i "speculationrules"

Documented Facts For Speculation Rules API (Prerender & Prefetch)

Metric or RuleDocumented ValueSource
CrUX field impactNear-0ms LCP on prerendered internal navigationsMDN Web Docs: Speculation Rules APIChecked November 27, 2026
Recommended eagernessmoderate (triggers on hover/pointerdown)MDN Web Docs: Speculation Rules APIChecked November 27, 2026
Delivery methodsHTML <script type="speculationrules"> or HTTP headerMDN Web Docs: Speculation Rules APIChecked November 27, 2026

Official Specification & Google Behavior

Supported natively in Chromium browsers (Chrome, Edge) via inline <script type='speculationrules'> or the Speculation-Rules HTTP header; excludes mutating URLs (like /logout or /cart) via explicit not rules.

SEO & Indexing Impact

Instant prerendered internal page transitions record near-0ms Largest Contentful Paint inside 28-day Chrome UX Report (CrUX) field data, dramatically lifting sitewide Core Web Vitals pass rates.

Backlink Monitoring Verdict
Browser navigation optimization only—does not alter crawlable <a href> links or PageRank distribution.

Common Pitfalls

  • Prerendering state-mutating URLs (/logout, /add-to-cart) instead of excluding them with a not href_matches clause.
  • Using eagerness: immediate on 50+ links per page, burning user mobile bandwidth and server load.

Frequently Asked Questions

Does Chrome's Speculation Rules API actually improve Google Core Web Vitals?
Yes—real users navigating via prerendered internal links record near-zero LCP in Chrome UX Report (CrUX), lifting overall 28-day origin LCP.
Does Speculation Rules inflate GA4 pageviews if a user never clicks?
No, Google Analytics 4 and modern analytics scripts wait for document.prerendering activation before firing pageview events.
What eagerness setting is safest for content sites?
Use eagerness: 'moderate' (which triggers on 200ms hover or pointerdown) and exclude authenticated/mutating paths.

Primary Sources

Verified

Related Research Guides