HTMLLinkElement: fetchPriority property

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.

The fetchPriority property of the HTMLLinkElement interface represents a hint to the browser indicating how it should prioritize fetching a particular resource relative to other resources of the same type. It reflects the <link> element's fetchpriority content attribute.

Value

A string. For the permitted values, see the HTML fetchpriority attribute.

Examples

js
const preloadLink = document.createElement("link");
preloadLink.href = "my-image.jpg";
preloadLink.rel = "preload";
preloadLink.as = "image";
preloadLink.fetchPriority = "high";
document.head.appendChild(preloadLink);

Specifications

Specification
HTML
# dom-link-fetchpriority

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
fetchPriority
Chrome – No support
Chrome 101 – 101 (Release date: 2022-04-26)
altname
altname Alternate name: fetchpriority
Chrome – Full support
Chrome 102 (Release date: 2022-05-24)
footnote Full support
Edge – No support
Edge 101 – 101 (Release date: 2022-04-28)
altname
altname Alternate name: fetchpriority
Edge – Full support
Edge 102 (Release date: 2022-05-31)
footnote Full support
Firefox – Full support
Firefox 132 (Release date: 2024-10-29)
footnote
footnote See bug 1797715
Opera – No support
Opera 87 – 87 (Release date: 2022-05-17)
altname
altname Alternate name: fetchpriority
Opera – Full support
Opera 88 (Release date: 2022-06-08)
footnote Full support
Safari – Full support
Safari 17.2 (Release date: 2023-12-11)
footnote Full support
Chrome Android – No support
Chrome Android 101 – 101 (Release date: 2022-04-26)
altname
altname Alternate name: fetchpriority
Chrome Android – Full support
Chrome Android 102 (Release date: 2022-05-24)
footnote Full support
Firefox for Android – Full support
Firefox for Android 132 (Release date: 2024-10-29)
footnote
footnote See bug 1797715
Opera Android – Full support
Opera Android 70 (Release date: 2022-06-29)
footnote Full support
Safari on iOS – Full support
Safari on iOS 17.2 (Release date: 2023-12-11)
footnote Full support
Samsung Internet – Full support
Samsung Internet 19 (Release date: 2022-11-01)
footnote Full support
WebView Android – No support
WebView Android 101 – 101 (Release date: 2022-04-26)
altname
altname Alternate name: fetchpriority
WebView Android – Full support
WebView Android 102 (Release date: 2022-05-24)
footnote Full support
WebView on iOS – Full support
WebView on iOS 17.2 (Release date: 2023-12-11)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
See implementation notes.
Uses a non-standard name
Has more compatibility info.

See also