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 <script> element's fetchpriority content attribute.
A string. For the permitted values, see the HTML fetchpriority attribute.
<script id="el" type="module" src="main.js" fetchpriority="high"></script>const el = document.getElementById("el");
console.log(el.fetchPriority); // Output: "high"HTMLImageElement.fetchPriorityHTMLLinkElement.fetchPriorityLink header