# preload

> rel=preload tells the browser to fetch a resource it would find late, such as a font or CSS background. Syntax, the as and crossorigin rules, and common mistakes.

Canonical: https://scaplet.com/glossary/preload

Glossary Glossary · Performance

rel=preload tells the browser to fetch a resource it would find late, such as a font or CSS background. Syntax, the as and crossorigin rules, and common mistakes.

3 min

read

2

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

rel=preload is a link hint that makes the browser fetch a resource early, before it would otherwise discover it. It only downloads and caches the file: a preloaded script is not executed. It pays off most for resources found late, such as fonts or images referenced from CSS.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fpreload%20(%22preload%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fpreload%20(%22preload%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fpreload%20(%22preload%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fpreload%20(%22preload%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

`href` and `as`

Needs

Need `crossorigin`

Fonts and fetch

No, download and cache only

Executes scripts

Resources discovered late

Best for

_01_Explained

## What preload does and does not do

Preload is mandatory for the browser. web.dev contrasts it with hints such as `preconnect` and `prefetch`, which the browser may ignore. Putting a `<link rel="preload">` in the `<head>` starts the download early and stores the result for the real request to pick up.

MDN is blunt about one misreading: despite the name, preload does not execute a script. It schedules the fetch and the caching, nothing more. The benefit is greatest for resources the browser would find late, such as fonts and images referenced in CSS or resources requested by JavaScript. For a resource sitting in the same HTML chunk, the gain is small.

_02_At a glance

## Anatomy of a preload tag

Attribute

### `href`

Job

The resource to fetch

If you get it wrong

Nothing useful is preloaded

Attribute

### `as`

Job

Resource type: `fetch`, `font`, `image`, `script`, `style` or `track`. It lets the [browser cache](/glossary/http-caching) the file, apply the right CSP and set `Accept` headers

If you get it wrong

web.dev says a missing or invalid value is treated like an XHR request, and scripts can be fetched twice

Attribute

### `type`

Job

MIME type, so the browser can skip formats it does not support

If you get it wrong

Listing several formats of one resource downloads every supported one

Attribute

### `crossorigin`

Job

Required for `font` and `fetch`, and it must match the eventual request's [CORS](/glossary/cors) mode

If you get it wrong

web.dev warns that fonts preloaded without it are fetched twice

Attribute

### `media`

Job

Preload only when a media query matches

If you get it wrong

A wide-screen image downloads on a phone

Preload a web font

```
<link rel="preload" href="/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>
```

**Fonts always need crossorigin**Fonts are fetched in anonymous CORS mode, even from your own origin. Leave `crossorigin` off and the preload is wasted: the browser fetches the font a second time when CSS asks for it.

_03_How it works

## Check it in 2 minutes

1. 01

### Find candidates

Run [Lighthouse](/glossary/lighthouse) and open the Preload key requests audit. web.dev says it flags assets on the third level of the critical request chain as late-discovered.
2. 02

### Open the Network panel

Reload with cache disabled and look at the Priority and Initiator columns. A font or hero image initiated by a stylesheet is a late discovery.
3. 03

### Add one preload

Preload only the single resource that delays the render, then reload and compare when it starts downloading.
4. 04

### Watch the console

web.dev says Chrome logs a warning for an unused preload approximately 3 seconds after the `load` event. A warning means the preload did not match a real request.

_04_Your call

## When to preload and when to skip

If this fits

### Preload when

- A font in `@font-face` is needed for the first visible text
- The LCP image is a CSS background or is injected by JavaScript
- The resource is discovered only after a stylesheet or script has downloaded

Or

### Skip it when

- The resource is already in the initial HTML and found early
- You are tempted to preload ten things: web.dev says if too many resources are prioritized, effectively none of them are
- You cannot match `as`, `type` and `crossorigin` to the real request

Preload fixes discovery, not priority. If the file is found but still queued behind others, pair it with [fetchpriority](/glossary/fetchpriority). To warm a connection to another origin instead, see [preconnect](/glossary/preconnect). The related lazy-loading failure is covered in [lazy-loaded LCP image](/seo-issues/lazy-loaded-lcp-image).

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ What is the difference between preload and prefetch?

Preload is for the current page and is mandatory for the browser. Prefetch is a hint for something a later navigation may need. web.dev describes preload as mandatory, in contrast to hints like prefetch.

_02_ Does preload make a script run earlier?

No. It only downloads and caches the file. The script still runs when a `<script>` element loads it. MDN points to `modulepreload` for JavaScript modules.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- mozilla.org
- web.dev

1. 01 [rel=preload (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/preload) developer.mozilla.org · checked 2026-11-01
2. 02 [Preload critical assets to improve loading speed (web.dev)](https://web.dev/articles/preload-critical-assets) web.dev · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn fetchpriority Performance](/glossary/fetchpriority) [Related Largest Contentful Paint Performance](/glossary/largest-contentful-paint) [Read next Critical rendering path Performance](/glossary/critical-rendering-path) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[PPC](/glossary/ppc) [Private blog network (PBN)](/glossary/private-blog-network) [Product feed](/glossary/product-feed)

More in Performance
[HTTP caching](/glossary/http-caching) [HTTP/2](/glossary/http-2) [HTTP/3](/glossary/http-3) [Image compression](/glossary/image-compression) [Interaction to Next Paint (INP)](/glossary/interaction-to-next-paint) [Largest Contentful Paint](/glossary/largest-contentful-paint) [Lazy loading](/glossary/lazy-loading) [Lighthouse](/glossary/lighthouse) [Page experience](/glossary/page-experience) [Page speed](/glossary/page-speed) [PageSpeed Insights](/glossary/pagespeed-insights) [preconnect](/glossary/preconnect) [preload](/glossary/preload) [Progressive web app](/glossary/progressive-web-app) [Real user monitoring (RUM)](/glossary/real-user-monitoring) [Render-blocking](/glossary/render-blocking) [Responsive design](/glossary/responsive-design) [Responsive images](/glossary/responsive-images) [Service worker](/glossary/service-worker) [Speculation rules](/glossary/speculation-rules) [Speed Index](/glossary/speed-index) [SVG](/glossary/svg) [Synthetic monitoring](/glossary/synthetic-monitoring) [Time to First Byte (TTFB)](/glossary/time-to-first-byte)

Terms on this page
[HTTP caching](/glossary/http-caching) [CORS](/glossary/cors) [Lighthouse](/glossary/lighthouse) [fetchpriority](/glossary/fetchpriority) [preconnect](/glossary/preconnect)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
