Web platform features explorer

JavaScript modules

Widely available since 2020-11-09
Tags: api html javascript svg Groups: JavaScript modules

JavaScript modules allow code to be organized into reusable units. Modules use import to load other modules and export to declare what is available to import from other modules. In HTML, modules are loaded with <script type="module">.

Learning resources on MDN

No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.

Browser support (view on caniuse.com)

Usage (according to Chrome Platform Status)

~25.145% of page loads. More data at chromestatus.