Preload
ELI5 — The Vibe Check
Telling the browser 'hey, you're gonna need this file SOON, start downloading it NOW.' Unlike prefetch (which is for future pages), preload is for stuff the CURRENT page needs urgently — like a font or a hero image. It's moving critical resources to the front of the download queue.
Real Talk
Preloading instructs the browser to fetch a resource with high priority for the current page, before it would naturally be discovered during HTML parsing. It's specified via <link rel='preload'> with the as attribute indicating resource type. It's critical for fonts, above-the-fold images, and critical scripts.
Show Me The Code
<!-- Preload critical resources -->
<link rel="preload" href="/fonts/Inter.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/hero.webp" as="image">
<link rel="preload" href="/critical.css" as="style">
When You'll Hear This
"Preload the web font to avoid FOUT." / "Don't confuse preload (this page) with prefetch (next page)."
Related Terms
LCP (LCP)
LCP measures how long it takes for the biggest thing on your page to appear. Usually it's a hero image or a big headline.
Prefetch
Loading stuff before the user needs it. When someone hovers over a link, you start downloading that page's data so it loads instantly when they click.
Web Vitals
Web Vitals are Google's report card for how good your website feels to use. They measure things like 'how fast does the main content load?