img-load
tiny promise-based
<img>
loader for the browser
usage
loadImage(path)
Returns a Promise
which resolves to the image indicated by path
.
Consider using loadImage
within an async function to further simplify usage.
{ let foo = await let bar = await // use `foo.png` and `bar.png`}