Speculation rulesLimited availability
Speculation rules are hints to the browser to proactively download pages in the background so they appear instantly when the user navigates to them.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–108Not supported
109+Supportedsince Jan 10, 2023
Current: 155Edge
12–108Not supported
109+Supportedsince Jan 12, 2023
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–108Not supported
109+Supportedsince Jan 10, 2023
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: prerendering.
Feature detection
JS · check before using
if ("type" in document.createElement("script")) {
// the type attribute/property of <script> is supported
}Documentation (MDN)
Sub-features
Support for each part of the feature (25). The overall table above shows when the whole feature works.
Show 5 more
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| http.headers.Sec-Speculation-Tags | 136 | 136 | ✕ | ✕ | 136 | ✕ | ✕ |
| http.headers.Speculation-Rules | 121 | 121 | ✕ | ✕ | 121 | ✕ | ✕ |
| http.headers.Supports-Loading-Mode | 109 | 109 | ✕ | ✕ | 109 | ✕ | ✕ |
| http.headers.Supports-Loading-Mode.credentialed-prerender | 109 | 109 | ✕ | ✕ | 109 | ✕ | ✕ |
| http.headers.Supports-Loading-Mode.fenced-frame | 117 | 117 | ✕ | ✕ | 117 | ✕ | ✕ |