Why this matters
The production reason.
Preload tells the browser an asset is important before normal discovery would find it.
Use it for one true critical asset, such as a hero image or primary font file. Too many preloads compete with each other.
Wrong preloads can make performance worse by stealing bandwidth from CSS or route JavaScript.
<link
rel="preload"
as="image"
href="/images/home-hero.webp"
imagesrcset="/images/home-hero.webp 1x, /images/home-hero@2x.webp 2x"
imagesizes="100vw"
/>