LOAD-IMAGE
Promise-based image preloading function.
Usage
import {loadImage} from "@alxcube/load-image";
document.body.appendChild(await loadImage("image/url.png"));
Promise-based image preloading function.
import {loadImage} from "@alxcube/load-image";
document.body.appendChild(await loadImage("image/url.png"));
npm i @alxcube/load-image
3
0.1.4
MIT
10.9 kB
10