@byunmaster/image-preloader
v0.1.1
Published
Preload images using Shadow DOM
Downloads
23
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-preloaderUsage
import { imagePreload } from '@byunmaster/image-preloader';
imagePreload(['image url', 'image url', ...]);Support
https://caniuse.com/shadowdomv1
