Speculation Rules API: Near-Zero LCP Navigations for Real CrUX Gains
Speculation Rules API prerenders likely next pages cleanly in modern browsers—cutting real-user CrUX LCP toward zero milliseconds.
Dmitry K., Technical SEO Lead · SEO Space
Indexation benchmark targets
- Target CrUX metric
- LCP < 1.2s p75
- Default eagerness
- moderate (hover)
- Exclusions
- /cart, /logout, /api
How Speculation Rules Elevate Real-User Field LCP (CrUX)
While Lab Lighthouse scores evaluate cold initial loads, Google Search rankings rely on 28-day field CrUX telemetry including internal browsing transitions across sessions.
By embedding declarative `<script type="speculationrules">` JSON policies, Chromium pre-fetches or pre-renders likely category and product clicks on pointer hover—eliminating network wait during navigation.
<script type="speculationrules">
{
"prerender": [{
"where": { "and": [
{ "href_matches": "/*" },
{ "not": { "href_matches": ["/logout*", "/cart*", "/checkout*"] } }
]},
"eagerness": "moderate"
}]
}
</script> Analytics Double-Counting & Origin Load Safeguards
Guard telemetry pixels against firing during background prerender until `document.prerendering` turns false and the user actually activates the tab.
- Use `eagerness: "moderate"` (200ms hover trigger) instead of `immediate` to keep origin bandwidth lean.
- Exclude stateful URLs such as `/logout`, `/cart`, and external affiliate redirects.
- Listen to `prerenderingchange` events before triggering conversion or session analytics.
Prerender vs. Prefetch Decision Matrix
Reserve full `prerender` for high-confidence catalog transitions and fallback to `prefetch` on heavy media or low-memory devices.
| Rule Type | CrUX Impact | Server Cost |
|---|---|---|
| Prerender (moderate) | Near 0ms LCP + FCP | Low-Moderate (hover only) |
| Prefetch (moderate) | Cuts TTFB on navigation | Minimal HTML fetch only |
| No Speculation | Full cold waterfall | Baseline origin traffic |
Need this indexation setup audited on your domain?
Send your website URL. We check raw HTML parity, log crawl hits, canonical discipline, and sitemap architecture manually within 24 hours.