coderef

<link rel="preload">Baseline · Widely available

The rel="preload" attribute for the &#x3C;link> HTML element requests resources, such as images or style sheets, that the page needs soon, so the browser may prioritize them for loading before rendering begins.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jan 26, 2021. Widely available since Jul 26, 2023.

Browser support

DesktopChrome
1–49Not supported
50+Supportedsince Apr 13, 2016
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–84Not supported
85+Supportedsince Jan 26, 2021
Current: 157
Safari
1–11Not supported
11.1+Supportedsince Apr 12, 2018
Current: 27
MobileChrome Android
18–49Not supported
50+Supportedsince Apr 13, 2016
Current: 155
Firefox Android
4–84Not supported
85+Supportedsince Jan 26, 2021
Current: 157
Safari iOS
1–11Not supported
11.3+Supportedsince Mar 29, 2018
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: preload.

Feature detection

JS · check before using
if ("rel" in document.createElement("link")) {
  // the rel attribute/property of <link> is supported
}

Sub-features

Support for each part of the feature (7). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
link.rel.preload50798511.1508511.3
link.rel.preload.as-fetch50798511.1508511.3
link.rel.preload.as-font50798511.1508511.3
link.rel.preload.as-image50798511.1508511.3
link.rel.preload.as-script50798511.1508511.3
link.rel.preload.as-style50798511.1508511.3
link.rel.preload.as-track5079✕11.150✕11.3