HTMLImageElement: fetchPriority property - Web APIs | MDN
Value
A string whose value is one of high, low, or auto. For their meanings, see the HTML fetchpriority attribute.
Examples
js
const img = new Image();
img.fetchPriority = "high";
img.src = "img/logo.png";
Specifications
| Specification |
|---|
| HTML # dom-img-fetchpriority |
Browser compatibility
See also
HTMLLinkElement.fetchPriorityHTMLScriptElement.fetchPriority- HTTP
Linkheader - Optimize resource loading with the Fetch Priority API for information about how this API affects priorities on Chrome.