Skip to main content

Speculation Rules Make Navigation Instant

Speculation Rules let you tell Chrome to prefetch or prerender pages a user is likely to visit. Add a <script type=”speculationrules”> with a JSON config and Chrome will warm…

April 23, 2026 JavaScript chris 1 min read Performance

Article takeaway

Speculation Rules let you tell Chrome to prefetch or prerender pages a user is likely to visit. Add a <script type="speculationrules"> with a JSON config and Chrome will warm…

Speculation Rules let you tell Chrome to prefetch or prerender pages a user is likely to visit. Add a <script type="speculationrules"> with a JSON config and Chrome will warm up the navigation in the background.

Prerender goes further than prefetch — the entire page is built and ready, so the click navigation appears instantaneous. Use it carefully: prerendered pages count as visits in some analytics setups.

Currently Chrome-only, but it is a no-cost progressive enhancement: browsers that do not understand the script ignore it.

Share X / Twitter LinkedIn

Leave a comment

Related Posts