HTML Attributes

HTML fetchpriority attribute

Hints relative fetch priority for eligible resources. It is not a guarantee and does not replace preloading or lazy loading. Reserve high for genuinely important resources. Applicable elements include: <img>, <link>, <script>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
fetchpriority="high"

Parameters & Attributes

NameTypeDescription
fetchpriorityenumerated: high, low, autoHints relative fetch priority for eligible resources. It is not a guarantee and does not replace preloading or lazy loading. Reserve high for genuinely important resources.

Working Example

Example Snippethtml
<img src="hero.jpg" alt="City skyline" fetchpriority="high" width="800" height="400">

Browser Compatibility

Minimum supported versions across modern rendering engines

Blink (modern)
Chrome
101
Yes
Gecko
Firefox
132
Yes
WebKit
Safari
17.2
Yes
Support for fetchpriority on img; link and script contexts may differ. This is retained historical source evidence, not a new browser test.
HTML Living Standard
HTML Reference