Statements (23)
Predicate | Object |
---|---|
gptkbp:instanceOf |
JavaScript language feature
|
gptkbp:allows |
dynamic module path
|
gptkbp:canBe |
ES modules
|
gptkbp:compatibleWith |
gptkb:CommonJS_modules
static analysis for imported modules |
gptkbp:enables |
code splitting
lazy loading conditional loading |
gptkbp:errorHandling |
catch method on Promise
|
gptkbp:example |
import('./module.js').then(module => { /* ... */ })
|
gptkbp:hasSyntax |
import()
|
https://www.w3.org/2000/01/rdf-schema#label |
JavaScript dynamic imports
|
gptkbp:introducedIn |
gptkb:ECMAScript_2015
|
gptkbp:purpose |
load modules dynamically
|
gptkbp:result |
gptkb:Promise
|
gptkbp:specifies |
gptkb:ECMAScript_specification
|
gptkbp:staticImportsAlternative |
import statement
|
gptkbp:supportedBy |
gptkb:Node.js
modern browsers |
gptkbp:usedFor |
on-demand loading
reducing initial load time |
gptkbp:bfsParent |
gptkb:HTML_Imports
|
gptkbp:bfsLayer |
5
|