The modulepreload
keyword for the rel
attribute of the <link>
element provides a declarative way to preemptively fetch a module script and its dependencies, and store them in the document's module map for later evaluation.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'modulepreload' in that specification. |
Living Standard |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
modulepreload | Chrome Full support 66 | Edge Full support ≤79 | Firefox ? | IE ? | Opera Full support 53 | Safari ? | WebView Android Full support 66 | Chrome Android Full support 66 | Firefox Android ? | Opera Android Full support 47 | Safari iOS ? | Samsung Internet Android Full support 9.0 |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.