HTMLScriptElement: fetchPriority property - Web APIs | MDN

Value

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

Examples

html

<script id="el" type="module" src="main.js" fetchpriority="high"></script>

js

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

Specifications

Specification
HTML
# dom-script-fetchpriority

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.