Skip to content

Glossary: JavaScript Beyond the Basics

Dynamic import

Also written: import()

`await import(path)` loads a module while the program runs, only when needed, and returns a promise for its exports. It works in CommonJS files too.

Where the book teaches it

Related terms

ES modulesCommonJS