Optional
__staticThe container for the preloader. Set it to null
if you only need the preloader logic.
Optional
customSelector for custom resources to preload. Elements should include data-weight
and data-loaded
attributes.
Example: data-weight="10"
for a weight of 10, data-loaded="10"
when loaded.
Optional
endDuration (ms) to complete the preloader if resources are loaded but progress < 1.
Optional
hideDefines whether to automatically hide the preloader container.
false
: Disables the hiding animation, allowing you to manage it manually.number
: Specifies the animation duration in milliseconds.
This works only if the container is an HTML element.Optional
ignoreClass name for elements to exclude from preloading.
Optional
lerpLinear interpolation factor for smooth progress updates. 1
disables interpolation for instant updates.
Optional
preloadEnables automatic preloading of images.
Optional
preloadEnables automatic preloading of videos.
Static properties for configuring the progress preloader.