A string representing the priority hint. Possible values are:
high
Fetch the resource at a high priority relative to other resources of the same type and internal prioritization.
low
Fetch the resource at a low priority relative to other resources of the same type and internal prioritization.
auto
Don't set a preference for the fetch priority. This is the default. It is used if no value is set or if an invalid value is set.
const preloadLink = document.createElement("link");
preloadLink.href = "my-image.jpg";
preloadLink.rel = "preload";
preloadLink.as = "image";
preloadLink.fetchPriority = "high";
document.head.appendChild(preloadLink);
Specifications Browser compatibility
Loadingâ¦
See alsoHTMLImageElement.fetchPriority
HTMLScriptElement.fetchPriority
Link
headerRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.5