Speculation Rules — prefetch or prerender the next page
TL;DR
Speculation rules are a block of JSON that tells the browser which links to prefetch or prerender before the visitor clicks them, so the next page opens faster. They are not a ranking factor; they speed up navigation inside your site.
Explain Simply
It is like a waiter who sees you glance at the dessert menu and starts the dessert before you order. If you do order it, it arrives almost at once.
Speculative loading uses JSON speculation rules, written in a script tag of type speculationrules in the head or body, or added with JavaScript. A list rule names URLs; a document rule uses a where key with href and CSS selectors to pick links on the page. An optional eagerness value (immediate, eager, moderate or conservative) says when to act: immediate speculates as soon as possible, while the others wait for signals such as a hover or the start of a click. A server can also send the rules by pointing a Speculation-Rules response header at a JSON file (MDN).
<script type="speculationrules">
{
"prefetch": [{
"where": { "href_matches": "/*" },
"eagerness": "moderate"
}]
}
</script>
Chrome's Modern Web Guidance guide "Improve next page load performance" (developer.chrome.com/docs/modern-web-guidance/guides/performance/improve-next-page-load-performance) says this suits static pages and pages that are cheap to produce, and warns about stale content on dynamic pages. It calls prefetch the more conservative choice, a good first step before prerender. See the Modern Web Guidance wiki page for the other guides CiteStat maps.
⚡Why It Matters
A page that is already fetched when the visitor clicks feels instant, and a faster next page helps loading metrics for real visits. Google does not rank pages for using speculation rules, so treat this as a user-experience gain, not an SEO lever.
🔍How CiteStat Checks
CiteStat looks for a script of type speculationrules in the served HTML and for a Speculation-Rules response header. It is reported, not scored: a page with neither gets an advice-level finding.
CiteStat Score Impact
Reported, not scored: the rule never moves the headline score or a category card.
Fix Difficulty
Editor: Hard | Developer: Easy | AI Agent: Easy