{
    "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/",
    "canonical": "https://ursy.com/wiki/preload/",
    "markdown": "https://ursy.com/wiki/preload/index.md",
    "json": "https://ursy.com/wiki/preload/index.json",
    "published": "2026-11-25T01:48:08+00:00",
    "updated": "2026-11-25T01:48:08+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/preload/",
    "headings": [
        {
            "level": 2,
            "text": "What is preload?",
            "id": "what-is-preload",
            "url": "https://ursy.com/wiki/preload/#what-is-preload"
        },
        {
            "level": 2,
            "text": "What do the attributes mean?",
            "id": "what-do-the-attributes-mean",
            "url": "https://ursy.com/wiki/preload/#what-do-the-attributes-mean"
        },
        {
            "level": 2,
            "text": "How is it different from prefetch and preconnect?",
            "id": "how-is-it-different-from-prefetch-and-preconnect",
            "url": "https://ursy.com/wiki/preload/#how-is-it-different-from-prefetch-and-preconnect"
        },
        {
            "level": 2,
            "text": "Why does preload matter for search?",
            "id": "why-does-preload-matter-for-search",
            "url": "https://ursy.com/wiki/preload/#why-does-preload-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/preload/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/preload/#a-worked-example"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/preload/#common-mistakes"
        },
        {
            "level": 2,
            "text": "How do I check it?",
            "id": "how-do-i-check-it",
            "url": "https://ursy.com/wiki/preload/#how-do-i-check-it"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/preload/#questions"
        },
        {
            "level": 3,
            "text": "Can I preload from the server?",
            "id": "can-i-preload-from-the-server",
            "url": "https://ursy.com/wiki/preload/#can-i-preload-from-the-server"
        },
        {
            "level": 3,
            "text": "Should I preload my main stylesheet?",
            "id": "should-i-preload-my-main-stylesheet",
            "url": "https://ursy.com/wiki/preload/#should-i-preload-my-main-stylesheet"
        },
        {
            "level": 3,
            "text": "Does preload help a slow server?",
            "id": "does-preload-help-a-slow-server",
            "url": "https://ursy.com/wiki/preload/#does-preload-help-a-slow-server"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/preload/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/preload/#sources"
        }
    ],
    "links": [
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "CSS",
            "url": "https://ursy.com/wiki/css/",
            "internal": true
        },
        {
            "text": "HTML head",
            "url": "https://ursy.com/wiki/html-head/",
            "internal": true
        },
        {
            "text": "rel=preload reference",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/preload",
            "internal": false
        },
        {
            "text": "Prefetch",
            "url": "https://ursy.com/wiki/prefetch/",
            "internal": true
        },
        {
            "text": "preconnect guide",
            "url": "https://web.dev/articles/preconnect-and-dns-prefetch",
            "internal": false
        },
        {
            "text": "fetch priority guide",
            "url": "https://web.dev/articles/fetch-priority",
            "internal": false
        },
        {
            "text": "Largest Contentful Paint",
            "url": "https://ursy.com/wiki/largest-contentful-paint/",
            "internal": true
        },
        {
            "text": "guide to preloading critical assets",
            "url": "https://web.dev/articles/preload-critical-assets",
            "internal": false
        },
        {
            "text": "First Contentful Paint",
            "url": "https://ursy.com/wiki/first-contentful-paint/",
            "internal": true
        },
        {
            "text": "layout shift",
            "url": "https://ursy.com/wiki/cumulative-layout-shift/",
            "internal": true
        },
        {
            "text": "Core Web Vitals",
            "url": "https://ursy.com/wiki/core-web-vitals/",
            "internal": true
        },
        {
            "text": "critical rendering path",
            "url": "https://ursy.com/wiki/critical-rendering-path/",
            "internal": true
        },
        {
            "text": "Google Lighthouse",
            "url": "https://ursy.com/wiki/google-lighthouse/",
            "internal": true
        },
        {
            "text": "PageSpeed Insights",
            "url": "https://ursy.com/wiki/google-pagespeed-insights/",
            "internal": true
        },
        {
            "text": "AI crawler",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "JavaScript SEO checker",
            "url": "https://ursy.com/javascript-seo-checker/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "Lazy loading",
            "url": "https://ursy.com/wiki/lazy-loading/",
            "internal": true
        },
        {
            "text": "WebP and AVIF",
            "url": "https://ursy.com/wiki/webp-and-avif/",
            "internal": true
        },
        {
            "text": "srcset",
            "url": "https://ursy.com/wiki/srcset/",
            "internal": true
        },
        {
            "text": "HTTP header checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "Core Web Vitals checker",
            "url": "https://ursy.com/core-web-vitals-checker/",
            "internal": true
        },
        {
            "text": "page speed checker",
            "url": "https://ursy.com/page-speed-checker/",
            "internal": true
        },
        {
            "text": "Core Web Vitals calculator",
            "url": "https://ursy.com/webmaster-tools/core-web-vitals-calculator/",
            "internal": true
        },
        {
            "text": "asset diet report",
            "url": "https://ursy.com/pro/asset-diet-report/",
            "internal": true
        },
        {
            "text": "caching",
            "url": "https://ursy.com/wiki/caching/",
            "internal": true
        },
        {
            "text": "render-blocking resources",
            "url": "https://ursy.com/wiki/render-blocking-resources/",
            "internal": true
        },
        {
            "text": "time to first byte",
            "url": "https://ursy.com/wiki/time-to-first-byte/",
            "internal": true
        },
        {
            "text": "edge caching",
            "url": "https://ursy.com/wiki/edge-cache/",
            "internal": true
        },
        {
            "text": "CDN",
            "url": "https://ursy.com/wiki/cdn/",
            "internal": true
        },
        {
            "text": "Page speed",
            "url": "https://ursy.com/wiki/page-speed/",
            "internal": true
        },
        {
            "text": "Async and defer scripts",
            "url": "https://ursy.com/wiki/async-and-defer-scripts/",
            "internal": true
        },
        {
            "text": "Image compression",
            "url": "https://ursy.com/wiki/image-compression/",
            "internal": true
        },
        {
            "text": "Why your website is slow",
            "url": "https://ursy.com/wiki/why-your-website-is-slow/",
            "internal": true
        }
    ],
    "words": 1125,
    "text": "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 Link header 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 Page speed Async and defer scripts Image compression Why your website is slow 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.",
    "source": "https://ursy.com/wiki/preload/"
}