Preload Image by URL. Uses the same cache as image / spritesheet shapes, so firing afterwards draws immediately.
image
spritesheet
Image URL
Promise Resolving with the Loaded Image
await loadImage("/coin.png");Konfeti.fire({ shapes: [{ type: "image", src: "/coin.png" }] }); Copy
await loadImage("/coin.png");Konfeti.fire({ shapes: [{ type: "image", src: "/coin.png" }] });
Preload Image by URL. Uses the same cache as
image/spritesheetshapes, so firing afterwards draws immediately.