Skip to content

EZ Web Audio / preload

Function: preload()

preload(urls): Promise<void>

Defined in: preload.ts:15

Preload audio URLs into cache for faster Sound/Track creation.

Parameters

urls

Single URL or array of URLs to preload

string | string[]

Returns

Promise<void>

Promise that resolves when all URLs are cached

Throws

Error if any URL fails to load (after attempting all)