Static
getStatic
getGet 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.
Static
setSet a wasm module's configuration.
Name of the module.
Optional
config: {The configuration object.
Optional
errorHandler?: ModuleErrorCallbackFunction to be called if the module fails to download.
Optional
fallbackUrl?: stringURL of the fallback script to use when wasm modules aren't supported.
Optional
glueUrl?: stringURL of glue script.
Optional
numWorkers?: numberFor modules running on worker threads, the number of threads to use. Default value is based on module implementation.
Optional
wasmUrl?: stringURL of the wasm script.
A pure static utility class which supports immediate and lazy loading of wasm modules.