← API
Interface

PreloadOptions

Members

  • concurrency Maximum concurrent loads. Default 4 — chosen for balance with 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 —
  • 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.