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 StandardThe 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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.
Link types: modulepreload by Mozilla Contributors is licensed under CC-BY-SA 2.5.