Skip to main content
miji.be

Link Prefetch

A browser feature that fetches the resources of a link destination in advance in the background before the user clicks. It can reduce the wait time of page transitions in some cases.

Oct 31, 2026 / About 1 min read

Redirect

Link prefetch is a technique in which the browser fetches resources in advance before the user clicks a link, which can reduce the wait time of page transitions in some cases. The HTML <link rel="prefetch"> tag is a hint that tells the browser about resources likely to be needed in a future navigation. With the Speculation Rules API, you can control prefetching and prerendering by specifying conditions. On MDN (as of September 2026), this API is classified as an experimental feature.

Supporting browsers issue a low-priority request and store the response in the HTTP cache on disk. Because the resource is loaded from the cache at the point when the user actually clicks the link, network wait time can be reduced. In the Speculation Rules API, rules are defined in JSON format, and prefetching can be started with URL patterns or user actions (hover, pointer movement) as triggers.

Because a short URL goes through a redirect, one round trip of latency is added. One method is to prefetch the redirect destination URL, but according to MDN (as of April 2026), many browsers implement cache partitioning, so <link rel="prefetch"> does not help for the main document when navigating to another site. When the redirect destination is another site, this constraint applies. An implementation that starts prefetching on hover in a link list page or the preview screen of an email newsletter is also conceivable.

However, there are also points to watch out for. Because prefetching also fetches resources for pages the user does not actually visit, data consumption increases on mobile connections. In addition, because the prefetch requests themselves are recorded in access logs, accurately measuring the number of clicks may become difficult. From a privacy perspective, care is needed because requests occur to sites the user did not intend to visit. It is desirable to implement it in combination with detection of Data Saver mode and control through user settings.

Was this article helpful?

Related Terms

DNS Prefetch

A browser optimization that resolves link destination domain names in advance. Reduces page load time when a user clicks a link.

Prerendering

An optimization technique that fully renders a page in the background before the user clicks a link, making the subsequent navigation appear instant.

Lazy Loading

An optimization technique that defers loading of resources until they are actually needed, significantly improving initial page load speed.

Page Speed

A measure of how quickly a web page loads and becomes interactive, affecting both user experience and search rankings.

TTFB

The time from when a browser sends a request to when it receives the first byte of the response. A fundamental metric for server responsiveness.

Event Tracking

A method of measuring user interactions that do not involve page transitions, such as button clicks, video plays, and file downloads.

Related Articles

How Redirect Chains Impact Web Performance - Speed Optimization for Short URLs

Quantitative analysis of how short URL redirect chains affect Core Web Vitals and page load speed. Covers redirect hop optimization, edge redirects, and HTTP status code selection for maximum performance.

What Happens When You Click a Link? A Peek Behind the 0.5-Second Curtain

What happens behind the scenes when you click a link? An adventure-style guide covering DNS, requests, responses, and how URL shortener redirects work.

How URL Shorteners Work - The Technical Side of Redirects

Discover the technical mechanics behind URL shortening: hash generation, database lookups, HTTP redirects, and more. Includes HTTP response examples and base-62 encoding calculations.

Put the terms to work

Shorten a URL for Free