StaticgetGet a wasm module's configuration.
Name of the module.
The previously set configuration.
StaticgetGet a wasm module instance. The instance will be created if necessary and returned in the second parameter to callback.
Name of the module.
The function called when the instance is available.
StaticsetSet a wasm module's configuration.
Name of the module.
Optionalconfig: {The configuration object.
OptionalerrorHandler?: ModuleErrorCallbackFunction to be called if the module fails to download.
OptionalfallbackUrl?: stringURL of the fallback script to use when wasm modules aren't supported.
OptionalglueUrl?: stringURL of glue script.
OptionalnumWorkers?: numberFor modules running on worker threads, the number of threads to use. Default value is based on module implementation.
OptionalwasmUrl?: stringURL of the wasm script.
A pure static utility class which supports immediate and lazy loading of wasm modules.