Interface IProgressPreloaderStaticProps

Static properties for configuring the progress preloader.

interface IProgressPreloaderStaticProps {
    __staticProp?: null;
    container: null | HTMLElement;
    customSelector?: string;
    endDuration?: number;
    hide?: number | false;
    ignoreClassName?: string;
    lerp?: number;
    preloadImages?: boolean;
    preloadVideos?: boolean;
}

Hierarchy (View Summary, Expand)

Properties

__staticProp?: null
container: null | HTMLElement

The container for the preloader. Set it to null if you only need the preloader logic.

customSelector?: string

Selector 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.

'.js-preload'
endDuration?: number

Duration (ms) to complete the preloader if resources are loaded but progress < 1.

500
hide?: number | false

Defines 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.
250
ignoreClassName?: string

Class name for elements to exclude from preloading.

'js-preload-ignore'
lerp?: number

Linear interpolation factor for smooth progress updates. 1 disables interpolation for instant updates.

0.1
preloadImages?: boolean

Enables automatic preloading of images.

true
preloadVideos?: boolean

Enables automatic preloading of videos.

false
MMNEPVFCICPMFPCPTTAAATR