---
title: "Preload"
description: "Preload tells the browser to download a file the current page needs soon, such as a font or hero image, before it would find it on its own."
url: https://ursy.com/wiki/preload/
updated: 2026-11-25T01:48:08+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/preload/
---

# Preload

> Preload tells the browser to download a file the current page needs soon, such as a font or hero image, before it would find it on its own.

**Preload is a resource hint that tells the browser to start downloading a file the current page needs very soon, before the browser would find that file on its own.** It is for late-found files on this page, such as a web font or a hero image named inside a stylesheet. Used on 1 or 2 key files it can speed up the first view. Used on 20 it slows everything down.

## What is preload? {#what-is-preload}

A browser reads your [HTML](https://ursy.com/wiki/html/) from the top. It only learns about a font when it has downloaded and read the [CSS](https://ursy.com/wiki/css/) that names it. Preload skips that wait. You put a line in the [HTML head](https://ursy.com/wiki/html-head/):

```
<link rel="preload" href="https://shop.example/fonts/body.woff2" as="font" type="font/woff2" crossorigin>
```

MDN’s [rel=preload reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/preload) says it declares fetch requests for resources the page will need very soon, so they start loading early. It also says preload does not run a script. It only downloads and caches it at a higher priority. A normal `<script>` tag still has to use it.

## What do the attributes mean? {#what-do-the-attributes-mean}

| Attribute | What it does |
| --- | --- |
| `as` | Says what kind of file it is: `font`, `image`, `script`, `style`, `fetch` or `track`. MDN says this lets the browser cache it for later, apply the right security policy and send the right Accept header. |
| `crossorigin` | Needed for fonts and fetch, even on your own domain, because fonts load in anonymous CORS mode. |
| `type` | The browser skips the file if it cannot use that format. |
| `media` | A media query, so a phone and a desktop can preload different images. |
| `fetchpriority` | Raises or lowers the download priority (high, low or auto). |

MDN lists preload as Baseline: widely available across browsers since January 2021. For JavaScript modules, it points to `rel="modulepreload"` instead.

## How is it different from prefetch and preconnect? {#how-is-it-different-from-prefetch-and-preconnect}

- **Preload**  is for this page, at high priority.
- **[Prefetch](https://ursy.com/wiki/prefetch/)**  is for the next page, at low priority, when the browser is idle.
- **Preconnect**  only opens the connection to another origin. web.dev’s [preconnect guide](https://web.dev/articles/preconnect-and-dns-prefetch) says browsers close a connection that is not used within 10 seconds, so only preconnect origins you will use straight away.
- **Fetch priority**  changes priority but not discovery. web.dev’s [fetch priority guide](https://web.dev/articles/fetch-priority) puts it plainly: preload helps the browser find a file early but fetches it at the default priority; fetchpriority does not help discovery but can raise or lower priority.

## Why does preload matter for search? {#why-does-preload-matter-for-search}

Speed is part of page experience, and the most common win from preload is a faster [Largest Contentful Paint](https://ursy.com/wiki/largest-contentful-paint/). web.dev’s [guide to preloading critical assets](https://web.dev/articles/preload-critical-assets) says preload has a strong effect on LCP for fonts and images. It reports that Shopify, the Financial Times and Treebo each saw about 1 second off Time to Interactive and [First Contentful Paint](https://ursy.com/wiki/first-contentful-paint/). Text that waits on a font can also jump when the font arrives, which shows up as [layout shift](https://ursy.com/wiki/cumulative-layout-shift/). All three are part of [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/).

Lighthouse has a “Preload key requests” audit. web.dev says it flags files found at the third level of the critical request chain, which is the [critical rendering path](https://ursy.com/wiki/critical-rendering-path/) seen as a list of downloads. You can see it in [Google Lighthouse](https://ursy.com/wiki/google-lighthouse/) and [PageSpeed Insights](https://ursy.com/wiki/google-pagespeed-insights/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

It does not change what an AI system reads. An [AI crawler](https://ursy.com/wiki/ai-crawler/) mostly takes the HTML and ignores fonts and images. What it does help is the human who clicks a link in an answer: a page that shows its main content fast is less likely to lose that visitor. Keep your key words in the HTML itself, not drawn by a script, so both people and machines get them. Our [JavaScript SEO checker](https://ursy.com/javascript-seo-checker/) shows what is there before scripts run.

## A worked example {#a-worked-example}

One UK online shop has a large hero photo on every category page. The photo is set as a CSS background, so the browser finds it late. PageSpeed Insights names it as the LCP element. The fix is two lines:

```
<link rel="preload" href="https://shop.example/img/hero-800.webp" as="image" media="(width <= 600px)" fetchpriority="high">
<link rel="preload" href="https://shop.example/img/hero-1600.webp" as="image" media="(width > 600px)" fetchpriority="high">
```

The phone gets the small file, the desktop the large one, and neither waits for the stylesheet. If the hero were a normal `<img>` tag, the better fix would be `fetchpriority="high"` on the image itself and no lazy loading on it. web.dev reports that [Google](https://ursy.com/wiki/google/) Flights moved LCP from 2.6 s to 1.9 s with fetch priority. That is Google’s own result for one site.

## Common mistakes {#common-mistakes}

- **Preloading too much.**  web.dev warns that if too many resources are prioritised, effectively none of them are. Slow mobile networks suffer most.
- **A font without crossorigin.**  web.dev says such fonts are fetched twice.
- **Preloading something the page never uses.**  Chrome prints a console warning about 3 seconds after the load event, says web.dev. A theme change often leaves old preloads behind.
- **Wrong or missing `as`.**  The file may not be matched to the later request and is wasted.
- **Preloading a lazy-loaded image.**  [Lazy loading](https://ursy.com/wiki/lazy-loading/) and preload pull in opposite directions. Never lazy-load the LCP image.
- **Old formats.**  web.dev advises WOFF 2 fonts. For images see [WebP and AVIF](https://ursy.com/wiki/webp-and-avif/) and [srcset](https://ursy.com/wiki/srcset/).

## How do I check it? {#how-do-i-check-it}

1. Run the page through PageSpeed Insights and note the LCP element.
2. Open Chrome DevTools, Network tab. Preloaded files show early in the waterfall. Check the Console for unused preload warnings.
3. Preloads sent as a `Link` header show in our [HTTP header checker](https://ursy.com/http-header-checker/).
4. Two of our tools for this, the [Core Web Vitals checker](https://ursy.com/core-web-vitals-checker/) and the [page speed checker](https://ursy.com/page-speed-checker/), are coming soon. Today, the [Core Web Vitals calculator](https://ursy.com/webmaster-tools/core-web-vitals-calculator/) rates the numbers you have.
5. Our [asset diet report](https://ursy.com/pro/asset-diet-report/) (Pro) lists heavy files by page.

## Questions {#questions}

### Can I preload from the server? {#can-i-preload-from-the-server}

Yes. web.dev shows a header like `Link: </css/style.css>; rel="preload"; as="style"`. The browser then starts before it reads any HTML. Check [caching](https://ursy.com/wiki/caching/) rules on the file so repeat visits skip it.

### Should I preload my main stylesheet? {#should-i-preload-my-main-stylesheet}

Usually not. A stylesheet linked near the top is found at once. Preload is for files found late. Fix [render-blocking resources](https://ursy.com/wiki/render-blocking-resources/) first.

### Does preload help a slow server? {#does-preload-help-a-slow-server}

No. If [time to first byte](https://ursy.com/wiki/time-to-first-byte/) is slow, nothing starts until the HTML arrives. Look at [edge caching](https://ursy.com/wiki/edge-cache/) or a [CDN](https://ursy.com/wiki/cdn/) first.

## Related words {#related-words}

- [Page speed](https://ursy.com/wiki/page-speed/)
- [Async and defer scripts](https://ursy.com/wiki/async-and-defer-scripts/)
- [Image compression](https://ursy.com/wiki/image-compression/)
- [Why your website is slow](https://ursy.com/wiki/why-your-website-is-slow/)

## Sources {#sources}

- [MDN: rel=preload](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/preload), checked 25 November 2026
- [web.dev: Preload critical assets to improve loading speed](https://web.dev/articles/preload-critical-assets), checked 25 November 2026
- [web.dev: Optimise resource loading with the Fetch Priority API](https://web.dev/articles/fetch-priority), checked 25 November 2026
- [web.dev: Establish network connections early](https://web.dev/articles/preconnect-and-dns-prefetch), checked 25 November 2026

*Updated 25 November 2026 by URSY.*
