HTML fetchpriority Attribute
The fetchpriority attribute hints how important an image, script or linked resource is, so the browser can load it earlier (high) or later (low).
Description
The fetchpriority attribute gives the browser a hint about the relative priority of fetching a resource compared to other resources of the same type. Browsers already assign priorities automatically, but they cannot always know which image or script matters most to the user.
The most common use is fetchpriority="high" on the main hero image, the Largest Contentful Paint element, so that it starts downloading before less important images, which can noticeably improve loading performance. low can be used for images in a carousel that are not visible yet, or for non-critical scripts. It can be used on <img>, <link>, <script> and <iframe> elements.
Syntax
<tagname fetchpriority="high | low | auto">
Values
- highFetch this resource at a higher priority than other resources of the same type.
- lowFetch this resource at a lower priority.
- autoThe default. The browser decides the priority.
Applies To
Example
Browser Support
The following information will show you the current browser support for the HTML fetchpriority attribute. Hover over a browser icon to see the version that first introduced support for this HTML attribute.
Desktop





Tablets & Mobile





