Check if WASM SIMD is supported (V128 operations).
SIMD enables vectorised crypto operations for additional speedup. Detection uses a minimal WASM module that includes a V128 instruction.
true when SIMD is available.
true
import { isSimdSupported } from "@aspect/crypto-wasm";const useSimd = isSimdSupported();console.log(`SIMD acceleration: ${useSimd ? "enabled" : "disabled"}`); Copy
import { isSimdSupported } from "@aspect/crypto-wasm";const useSimd = isSimdSupported();console.log(`SIMD acceleration: ${useSimd ? "enabled" : "disabled"}`);
Check if WASM SIMD is supported (V128 operations).
SIMD enables vectorised crypto operations for additional speedup. Detection uses a minimal WASM module that includes a V128 instruction.