HTMLScriptElement: 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 HTMLScriptElement interface represents a hint to the browser indicating how it should prioritize fetching an external script relative to other external scripts. It reflects the fetchpriority attribute of the

js
const el = document.getElementById("el");
console.log(el.fetchPriority); // Output: "high"