Preload Scanner and fetchpriority Attribute vs Speculation Rules & Prerendering
Preload scanner prioritizes current-page subresources, while Speculation Rules prerender next-page navigations.
Structured Comparison Matrix
| Dimension | Preload Scanner and fetchpriority Attribute | Speculation Rules & Prerendering |
|---|---|---|
| Mental Model | Speculative HTML scanner discovering critical resources before JS execution, paired with fetchpriority to reorder the HTTP/2-HTTP/3 queue. | Declarative JSON rules that prefetch or fully prerender predicted next navigations in a hidden browsing context, delivering near-instant 0 ms LCP on click. |
| Maturity & Domain | Baseline · Newly · Network & Performance Chrome 101+ · Firefox 132+ · Safari 17.2+ | Experimental · Network & Performance Chrome 109+ · Firefox No (in development) · Safari No |
| Prerequisites | Foundational primitive | Foundational primitive |
| When Not to Use | When not to use fetchpriority="high": Never apply it to below-the-fold images or secondary web fonts; for cross-page navigation speedups, use Speculation Rules instead. | When not to use prerender: Avoid prerendering URLs with server-side side effects (logout links, add-to-cart GET endpoints) or pages heavy on WebGL/video memory. |
Engine Mechanics & Trade-Offs
fetchpriority adjusts resource priority before the first Layout pass.
Key Pitfalls: Client-injected LCP images: The Preload Scanner cannot see images mounted dynamically by React/SPA bundles until an Event Loop task executes JS, by which time your LCP budget is already half-spent. Overusing fetchpriority="high": Marking 10 images as high cancels prioritization benefits and delays critical stylesheets.
Spawns a hidden background renderer tab to fetch, parse, and paint a predicted next navigation, swapping it atomically on click for near-zero LCP.
Key Pitfalls: Inflated analytics & ad beacons: Scripts that fire on DOMContentLoaded count phantom pageviews for every hovered link; gate telemetry on !document.prerendering and prerenderingchange. eagerness: immediate on large lists: Putting immediate on a 30-item catalog grid DDoS-attacks your own origin server on every page load.