GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — fetchpriority HTML attribute - HTML | MDN

fetchpriority HTML attribute

Baseline 2024
Newly available

Since October 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

  • See full compatibility
  • Learn more

The fetchpriority attribute allows a developer to signal that fetching a particular image early in the loading process has more or less impact on user experience than a browser can reasonably infer when assigning an internal priority. This in turn allows the browser to increase or decrease the priority, and potentially load the image earlier or later than it would otherwise.

This attribute may be applied to <img>, <link>, and <script> elements. It also has an SVG counterpart.

The fetch priority can be used to complement preloading, allowing a developer to boost the priority ahead of less-impactful resources that have a higher default priority. For example, if a developer knows that a particular image significantly contributes to the website's Largest Contentful Paint (LCP) they could add <link rel="preload"> for the image and then further boost the priority using the fetchpriority attribute.

Note that both the internal priority of any fetch operation, and the impact of fetchpriority on the priority, are entirely browser dependent.

This attribute is enumerated and can have one of the following values:

high

Fetches the external resource at a high priority relative to other external resources.

low

Fetches the external resource at a low priority relative to other external resources.

auto

Doesn't set a preference for the fetch priority. It is used if no value or an invalid value is set. This is the default.

Usage notes

The attribute should be used sparingly, as excessive or incorrect prioritization can degrade performance.

Specifications

Specification
HTML
# attr-img-fetchpriority
HTML
# attr-link-fetchpriority
HTML
# attr-script-fetchpriority

Browser compatibility

html.elements.img.fetchpriority

html.elements.link.fetchpriority

html.elements.script.fetchpriority

See also

  • SVG fetchpriority attribute

Help improve MDN

Learn how to contribute

This page was last modified on Apr 20, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.