0.1.1 • Published 2 years ago
@byunmaster/image-preloader v0.1.1
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', ...]);