coderef

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

The rel="modulepreload" attribute for the &#x3C;link> HTML element indicates that a module script should be fetched, parsed, and compiled preemptively, and stored for later execution.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 18, 2023. Widely available since Mar 18, 2026.

Browser support

DesktopChrome
1–65Not supported
66+Supportedsince Apr 17, 2018
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–114Not supported
115+Supportedsince Jul 4, 2023
Current: 157
Safari
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27
MobileChrome Android
18–65Not supported
66+Supportedsince Apr 17, 2018
Current: 155
Firefox Android
4–114Not supported
115+Supportedsince Jul 4, 2023
Current: 157
Safari iOS
1–16.6Not supported
17+Supportedsince Sep 18, 2023
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: modulepreload.

Feature detection

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