Interface: LoadOptions

resource.LoadOptions

Configuration for the loader.

Properties

onProgress

Optional onProgress: (at: number, total: number) => void

Loading progress callback.

If the resource size and dependency information is found in the bundle mapping the progress will count the total bytes for all resources that will be loaded.

If bundle information is not found the progress will be file-based and counted only for the top-level resources.

Type declaration

▸ (at, total): void

Parameters
Name Type
at number
total number
Returns

void


retryCount

Optional retryCount: number

Number of retries for resource loading. There are some cases where the resource load is not retried, such as 404 - Not found error.


retryDelay

Optional retryDelay: number

The delay in milliseconds to wait between load attempts.