@byunmaster/image-preloader
v0.1.1
Published
Preload images using Shadow DOM
Downloads
1
Readme
Image Preloader
Preload and cache images using shadow dom.
You can prevent images from momentarily not being visible when loading them for the first time in SPA.
Installation
npm install @byunmaster/image-preloader
Usage
import { imagePreload } from '@byunmaster/image-preloader';
imagePreload(['image url', 'image url', ...]);
Support
https://caniuse.com/shadowdomv1