Favorites

HTML fetchpriority Attribute

fetchpriority
HTML AttributeThis attribute is supported by all modern browsers.
Updated 22nd November 2026

The fetchpriority attribute hints how important an image, script or linked resource is, so the browser can load it earlier (high) or later (low).

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

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

<img src="https://picsum.photos/id/1015/600/300" alt="Hero image" fetchpriority="high">
Open in editor

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.

This attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.