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? #
A browser reads your HTML from the top. It only learns about a font when it has downloaded and read the CSS that names it. Preload skips that wait. You put a line in the HTML head:
<link rel="preload" href="https://shop.example/fonts/body.woff2" as="font" type="font/woff2" crossorigin>
MDN’s rel=preload reference 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? #
| 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? #
- Preload is for this page, at high priority.
- 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 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 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? #
Speed is part of page experience, and the most common win from preload is a faster Largest Contentful Paint. web.dev’s guide to preloading 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. Text that waits on a font can also jump when the font arrives, which shows up as layout shift. All three are part of 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 seen as a list of downloads. You can see it in Google Lighthouse and PageSpeed Insights.
Why does it matter for AI answers? #
It does not change what an AI system reads. An 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 shows what is there before scripts run.
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 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 #
- 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 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 and srcset.
How do I check it? #
- Run the page through PageSpeed Insights and note the LCP element.
- Open Chrome DevTools, Network tab. Preloaded files show early in the waterfall. Check the Console for unused preload warnings.
- Preloads sent as a
Linkheader show in our HTTP header checker. - Two of our tools for this, the Core Web Vitals checker and the page speed checker, are coming soon. Today, the Core Web Vitals calculator rates the numbers you have.
- Our asset diet report (Pro) lists heavy files by page.
Questions #
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 rules on the file so repeat visits skip it.
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 first.
Does preload help a slow server? #
No. If time to first byte is slow, nothing starts until the HTML arrives. Look at edge caching or a CDN first.
Related words #
Sources #
- MDN: rel=preload, checked 25 November 2026
- web.dev: Preload critical assets to improve loading speed, checked 25 November 2026
- web.dev: Optimise resource loading with the Fetch Priority API, checked 25 November 2026
- web.dev: Establish network connections early, checked 25 November 2026
Updated 25 November 2026 by URSY.
Cite this page: Preload. URSY. Updated 25 November 2026. https://ursy.com/wiki/preload/ · 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 →