# PreloadOptions · API · zvuk

zvuk v1.14.1 · MIT · https://zvuk.schmooky.dev/api/PreloadOptions/

Reference for PreloadOptions.

[← API](/api/)

Interface

# PreloadOptions

## Members

-   concurrency Maximum concurrent loads. Default 4, which balances against browser connection limits (typically 6 per host) so the rest of the page's fetches don't starve. Lower for cheap mobile data plans, higher when you control the host and want to saturate.
-   onProgress Fires once per item as it settles. Use this to drive a loading-screen progress bar. The event is cumulative, so
-   signal Cancels the whole preload. In-flight fetches receive the abort; pending items aren't started. The promise rejects with the signal's abort reason.
