How to preload a late-discovered hero icon
Answer in brief
Preload the specific image that matters to the initial view when its ordinary discovery is delayed, such as an illustration referenced from a stylesheet. Match the preload to the eventual request.
Verify the waterfall
Add a link with rel="preload" and as="image" for the same hero URL used by the page. Compare discovery time in two cold loads and confirm only one useful transfer occurs. Remove the hint if it competes with more important content.
Match responsive preload candidates
When the hero uses density or width candidates, preloading one fixed URL can waste a transfer if the browser later selects a different file. Match the link's imagesrcset and imagesizes to the image's candidates and slot information where applicable. Compare the requested URLs on a narrow and a wide viewport.
Sources
- [1] rel="preload" HTML attribute value - HTML — MDN Web Docs, accessed November 23, 2026
Frequently asked questions
Should every dashboard glyph be preloaded?
Each hint competes for resources. Reserve it for files whose early discovery produces a measured benefit.