Skip to content

Function: isReady() ​

ts
function isReady(): boolean;

Defined in: wasm.ts:125

Whether the WebAssembly module has finished instantiating.

false while an init call is still in flight, so this reports genuine readiness rather than "has anyone started loading it".

Returns ​

boolean

true once conversions will run without waiting on a compile.

Example ​

Show a spinner only when the module still has to load

ts
if (!isReady()) showSpinner();
await init();
hideSpinner();

Released under the MIT License.