rel=modulepreload
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.
The type of the preloaded module may also be set to "script"
using the as
attribute (as="script"
), though this is not required as it is the default.
Specifications
Specification |
---|
HTML Standard # link-type-modulepreload |
Browser compatibility
BCD tables only load in the browser