JavaScript modules: <script type=module>

JavaScript modules allow a program to be divided into multiple sequences of statements and declarations. Each module explicitly identifies declarations it uses that need to be provided by other modules and which of its declarations are available for use by other modules. <script type=module> allows loading of JavaScript modules inside web pages.

Demo

Documentation

Specification

Established standard

Status in Chromium

Blink>JavaScript


Enabled by default (launch bug) in:

  • Chrome for desktop release 61
  • Chrome for Android release 61
  • Android WebView release 61
  • Opera release 48
  • Opera for Android release 48

Consensus & Standardization

Owners

Last updated on 2017-07-17