preload · fetch
loading…
Each card below uses a resource fetched by a different resource hint. Open DevTools → Network (or watch the server log) to see when each request fires.
loading…
loading…
loading…
Nothing on the page uses these two origins until you press the button, so the hints had time to finish. Compare the DNS and connect times.
The next page was prefetched and (in Chromium) prerendered.
Go to next page →| Resource | Type | Start (ms) | Duration (ms) |
|---|
dns-prefetchOnly resolves the hostname. Cheapest hint; useful for many third-party hosts you might touch later.
preconnectDNS lookup, TCP handshake and (for HTTPS) TLS negotiation, all done ahead of time. The first request to that origin skips straight to sending headers. Browsers close unused connections after ~10 s, so add it shortly before you need it, which is what the gallery below does as you scroll.
preloadA high-priority fetch of a resource this page will definitely use. as sets priority,
the Accept header and the CSP rules; a mismatch means the browser downloads it twice.
modulepreloadLike preload for ES modules, but it also parses and compiles the module and can follow its imports.
prefetchA low-priority fetch, stored in the HTTP cache, for something a future navigation will need.
Chromium can prefetch or fully prerender whole pages so that navigating to them is instant.
Each card below links to a page on a different origin (see the URL under each card). As you scroll:
<link rel=preconnect> to its origin is added (once per origin).<link rel=prefetch>
for the linked page is added.The log in the corner shows each step. Click any card to see how fast the page opens.
End of the gallery.