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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.