Feedback

Preconnect and preload

Updated

Two classic Lighthouse findings deal with telling the browser earlier what it will need: Preconnect to required origins and Preload key requests. Both are resource hints, small tags in the HTML head that let the browser start work before it would discover the need on its own. Preload (<link rel="preload">) tells the browser to fetch a resource the current page needs with high priority, before the HTML parser finds it, typically the LCP image, a web font or a critical script. Used well, they shave hundreds of milliseconds off Largest Contentful Paint and font rendering. Used carelessly, they compete with the resources that matter and make the page slower. This guide covers what each hint does, when to use it and the mistakes that turn a hint into a cost.

From PerfDelta's measurements: In the mobile lab test, resource load delay, the time before the browser even requests the LCP resource, is the largest part of LCP time on 39% of 41,409 home pages. That is the phase preconnect and preload shorten. More in the data section below.

Network dependency tree and LCP request discovery in Lighthouse 13

Lighthouse 13, and so PageSpeed Insights, no longer has separate audits for "Preconnect to required origins" and "Preload key requests". Preconnect candidates now appear in the insight Network dependency tree, which also replaces "Avoid chaining critical requests". It lists the origins the page already preconnects to, suggests further candidates and warns about unused preconnects, preconnects with a wrong crossorigin attribute and more than four preconnects (source code of the insight). Whether the LCP image is found early, has high priority and is not lazy-loaded is checked by the insight LCP request discovery, which replaces "Preload Largest Contentful Paint image" (Lighthouse source code, replacesAudits in core/audits/insights, version 13.5, retrieved 17 October 2026). The resource hints in this guide are the fix for both.

Preconnect: open the connection before the request

Every request to a new origin pays for a DNS lookup, a TCP handshake and a TLS negotiation before a single byte of content flows. On a mobile connection that setup alone can take several hundred milliseconds. rel="preconnect" tells the browser to do that setup now, in parallel with parsing the HTML, so the first real request to that origin finds a warm connection:

<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://cdn.example-images.com">

The crossorigin attribute matters: fonts and fetch() requests use CORS and need a separate connection from plain image or script requests. A preconnect without crossorigin does nothing for a font file, and the other way round.

Lighthouse lists origins where an early connection would have saved time, based on how late the first request to that origin started. Good candidates are the one or two origins that serve resources needed for the first paint: a separate image CDN, a font host, or an API the page needs before it can render. Third-party analytics and chat widgets are not candidates; they should load late, not early.

Keep the list short. Each preconnect opens a connection that costs CPU and memory on the device, and Chrome closes a connection the page does not use within about ten seconds, so the work is wasted. Lighthouse recommends no more than four. More preconnects than that is a sign that the page depends on too many origins, which is a problem resource hints cannot solve.

rel="dns-prefetch" is the lighter sibling: it only resolves the hostname. It is a reasonable fallback for origins that will be used later in the page, and it costs almost nothing.

Preload: fetch a late-discovered resource early

The browser discovers most resources while parsing the HTML. Some it cannot see until much later: a font referenced from inside a CSS file, a hero image set through a CSS background-image, or a script loaded by another script. rel="preload" moves those to the front of the queue:

<link rel="preload" href="/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/img/hero.avif" as="image" fetchpriority="high">

The as attribute is required; without it the browser cannot assign the right priority and may fetch the file twice. Older Lighthouse versions reported Preload key requests for resources that sit deep in the request chain and delay the critical path; in Lighthouse 13 such chains show up in the network dependency tree. For JavaScript modules, rel="modulepreload" is the better fit: it fetches the module in the right mode and lets the browser parse and compile it ahead of use.

HTTP/2 Server Push, once meant to deliver such files before the browser asked for them, was removed from Chrome 106 (Chrome blog). Its successor is 103 Early Hints: the server or CDN sends Link headers with preconnect and preload hints before the final HTML response, so the browser can start while the server is still building the page.

Preload is a sharp tool. Every preloaded file competes with the HTML, CSS and the LCP image for bandwidth during the first seconds. Preloading five fonts and three scripts does not make them all fast, it makes the LCP image slow. The right number of preloads on most pages is between zero and three: the LCP image if CSS or JavaScript hides it from the parser, and one or two fonts used above the fold.

fetchpriority: the simpler fix for the LCP image

If the LCP image is a normal <img> in the HTML, it does not need a preload. The parser finds it, and the only problem is that the browser assigns images a low priority until it knows they are visible. fetchpriority="high" fixes exactly that:

<img src="/img/hero.avif" width="1200" height="600" alt="..." fetchpriority="high">

Use preload for the LCP image only when it is a CSS background or injected by JavaScript. For everything below the fold, do the opposite: lazy-load it.

How to apply resource hints step by step

  1. Find the critical origins and files. In the Network panel of Chrome DevTools, sort by start time and look at what the first paint and the LCP element depend on. Lighthouse names the candidates in the network dependency tree and LCP request discovery insights.
  2. Add at most two preconnects for origins that serve render-critical resources, with crossorigin where fonts or CORS requests are involved.
  3. Mark the LCP image with fetchpriority="high", or preload it if the parser cannot see it.
  4. Preload the one or two fonts used in the first screen, and only those. Combine this with font-display so text renders while fonts load.
  5. Re-test and compare the LCP breakdown. A preload that helps shortens the resource load delay of the LCP element. If LCP got worse, remove the last hint you added.
  6. Remove hints when the resources change. A preload for a font the site no longer uses is a pure cost; audits rarely catch it because the file still loads fine.

Platform notes

Frequently asked questions

Should I preconnect to Google Fonts?

If you load Google Fonts, yes: preconnect to fonts.gstatic.com with crossorigin, because that is where the font files live and the CSS from fonts.googleapis.com only references them. The faster option is self-hosting, which removes both origins.

Can too many preloads hurt performance?

Yes. Preloads compete with the critical resources for bandwidth in the first seconds. Limit them to the LCP image, when needed, and one or two above-the-fold fonts.

What is the difference between preload and prefetch?

Preload fetches a resource for the current page early, with the priority its type normally gets: high for fonts and stylesheets, low for images unless you add fetchpriority="high". Prefetch fetches a resource for a likely next page at low priority, once the current page is idle. Do not use prefetch for anything the current page needs.

Why does Chrome warn that a preloaded resource was not used?

Either the as attribute or crossorigin does not match the real request, so the browser fetched the file twice, or the resource is not needed in the first seconds. Fix the attributes or remove the preload.

What PerfDelta's measurements show

In the mobile lab test, resource load delay, the time before the browser even requests the LCP resource, is the largest part of LCP time on 39% of 41,409 home pages. That is the phase preconnect and preload shorten.

PerfDelta does not store the network dependency tree or the preconnect hints a page sets as metrics of their own.

Data as of November 30, 2026, recalculated daily. Source: PerfDelta's own measurements (Chrome UX Report and Lighthouse); details in the website speed statistics and the methodology.

Thresholds and sources

Sources:

All sources retrieved on November 16, 2026. Thresholds and documentation change; the linked page is authoritative.

Test your site

Run a free scan to see whether this applies to your pages, on mobile and desktop, with lab and field data side by side.

Run a free test

A free account saves your tests and shows how your values change from one test to the next. Website performance monitoring with field data and alerts starts with the Solo plan.

Related audits