EasyImgPreloader
Image preloader, suitable for the need to load image resources in advance of the scenario.
tips: Image loading failure, we also identified as the loaded.
Install
npm i easy-img-preloader// oryarn add easy-img-preloader
Basic Usage
;
Params
name | type | default | Required | Desc |
---|---|---|---|---|
images | Array | [] | true | Image list |
callback | (progress) => {} | - | - | The loaded complete |
timeout | Int | 5000 | - | The load timeout for each image |
Examples
; ;