Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/html/attributes/rel/modulepreload/index.md
6520 views
---
title: rel=modulepreload slug: Web/HTML/Attributes/rel/modulepreload page-type: html-attribute-value browser-compat: html.elements.link.rel.modulepreload
---

{{HTMLSidebar}}

The modulepreload keyword for the {{HTMLAttrxRef("rel", "link")}} attribute of the {{HTMLElement("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

{{Specifications}}

Browser compatibility

{{Compat}}