fetchpriority attribute
An HTML attribute that hints a resource's relative download priority as high, low or auto.
In more detail
It also works on link and script elements and on fetch() through the priority option. fetchpriority="high" on the hero image tells the browser it matters more than other images, improving Largest Contentful Paint.
Related terms
- preload — A resource hint, <link rel="preload">, that makes the browser download a file needed for the current page right away at high priority.
- Largest Contentful Paint — A Core Web Vital: the time from starting to load a page until its largest visible image or text block is drawn.
- hero image — The large banner image or section at the top of a page, often the Largest Contentful Paint element.
Taught in
- Core Web Vitals: Measuring And Optimizing LCP, INP, And CLS — Frontend Architecture & Web Platform