Prefetch is a resource hint that tells the browser to download, at low priority, a file or page the visitor will probably need on their next click, so it is already waiting in the cache when they get there. It does not help the page that is loading now. It is a bet on the next page.
What is prefetch? #
You add one line to the HTML head: <link rel="prefetch" href="https://shop.example/checkout/">. MDN’s rel=prefetch reference describes it as a hint that the user is likely to need the resource for future navigations, so the browser can fetch and cache it early. The same hint can be sent as an HTTP header (Link: <https://shop.example/checkout/>; rel=prefetch), which our HTTP header checker will show you.
Prefetch is one of a family of hints. Each one does a different amount of work ahead of time:
| Hint | What it does early | For |
|---|---|---|
| dns-prefetch | Looks up the IP address only | Other origins you might use |
| preconnect | Opens the full connection | A few critical origins |
| preload | Downloads a file at high priority | The current page |
| prefetch | Downloads a file at low priority | The next page |
| prerender | Loads and runs a whole page hidden | The next page, when you are very sure |
web.dev’s guide to preconnect and dns-prefetch puts the saving from an early connection at 100 to 500 ms, and from a DNS lookup alone at 20 to 120 ms.
How does it work? #
The browser queues the hint and waits. web.dev’s prefetch guide says prefetches run at the lowest priority and are requested when the browser is idle, so they do not fight the current page for bandwidth. MDN adds three details that matter in practice:
- It goes into the HTTP cache. The file is kept on disk, so it works for scripts, styles and images the next page uses. A
Cache-Control: no-storeorno-cacheheader can stop it working. Our cache checker reads those headers for you. - It is same-site. Most browsers now split the cache by top-level site, so a prefetch for another website is wasted.
- Servers can see it. The request carries
Sec-Purpose: prefetch, so your origin server can treat it differently.
It is only a hint. The browser may ignore it, for example on a slow connection. MDN marks the feature as not Baseline because it does not work in some widely used browsers, and web.dev names Safari as the gap.
Is there a newer way? #
Yes. For whole pages, MDN now advises the Speculation Rules API where it is supported. You write a small JSON block in a <script type="speculationrules"> tag that lists pages, or patterns of links, to prefetch. MDN says this kind of prefetch should be preferred over <link rel="prefetch">, can work across sites, and respects battery saver and data saver modes. It holds the page in memory for the current document only, then throws it away when the visitor leaves.
Chrome’s guide to prerendering pages lists eagerness settings. With moderate, a desktop browser starts after 200 ms of hovering on a link. With conservative, it waits for the pointer or finger to press down. Chrome also caps how many speculations run at once.
Why does prefetch matter for search? #
Prefetch does not change your rankings by itself. What it changes is how fast the next page feels. web.dev says prefetching a document can lower time to first byte, and with it Largest Contentful Paint and First Contentful Paint. Prefetched scripts can also help Interaction to Next Paint. Those are the measures behind Core Web Vitals and a large part of page speed.
The gain shows in real visitor data, not in a one-off lab test. A lab tool loads one page cold, so it never sees the prefetch pay off.
Why does it matter for AI answers? #
Very little, directly. An AI crawler fetches one address at a time and does not click through your site like a person. It ignores hints meant for the next human click. The indirect link is people: a visitor who arrives from an AI answer and finds the next page instant is more likely to stay. Track that path with AI referral traffic in your analytics.
A worked example #
One UK online shop sees most basket visitors go on to checkout. It adds this to the basket page:
<link rel="prefetch" href="https://shop.example/checkout/">
<link rel="prefetch" href="https://shop.example/js/checkout.js">
While the visitor reads the basket, the browser quietly fetches both. When they press the button, the HTML and script come from the cache. It does not prefetch the “remove item” link or the sign-out link, because those change things on the server. MDN’s speculation rules page lists sign-out, add to cart and language switch links as unsafe to fetch ahead.
web.dev reports that Netflix prefetched React on its logged-out pages and cut Time to Interactive by 30% for later navigations. That is Netflix’s own result, not a promise for your site.
Common mistakes #
- Prefetching everything. Every unused prefetch is wasted data on someone’s phone plan. Pick the 1 or 2 most likely next steps.
- Prefetching pages with side effects. A prefetched “empty basket” link can empty the basket.
- Using prefetch for the current page. That is the job of render-blocking fixes and preload, not prefetch.
- No-store headers. The file is fetched, then thrown away.
- Counting it as a visit. A prefetch does not run your page’s scripts, so it should not log a pageview. Check your server logs do not treat
Sec-Purpose: prefetchrequests as people.
How do I check it? #
- Open Chrome DevTools, Network tab, and load the page. Prefetched files show with the lowest priority.
- Click to the next page. The file should say it came from the cache.
- Read the response headers with our HTTP header checker and cache checker.
- Run our free SEO audit or the tech stack checker to see what loads on each page.
- Watch real-visitor speed over time with real user speed (Pro) or page speed monitor (Pro).
Questions #
Does prefetch use the visitor’s data? #
Yes. web.dev says it consumes extra bytes for files that are not needed yet. Chrome turns speculation off when Save-Data is on.
Is prefetch the same as lazy loading? #
No. Lazy loading delays files until needed. Prefetch fetches them before they are needed. They work well together.
Does prefetch help Googlebot? #
Not in any way Google documents. Googlebot requests pages one by one, so the gain is for people. It shows up in speed data from real visitors, not in a crawl.
Related words #
Sources #
- MDN: rel=prefetch, checked 25 November 2026
- web.dev: Prefetch resources to speed up future navigations, checked 25 November 2026
- web.dev: Establish network connections early, checked 25 November 2026
- MDN: Speculation Rules API, checked 25 November 2026
- Chrome for Developers: Prerender pages in Chrome, checked 25 November 2026
Updated 25 November 2026 by URSY.
Cite this page: Prefetch. URSY. Updated 25 November 2026. https://ursy.com/wiki/prefetch/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →