Images that are fashionably late.
npm install lazyloadingconst afterparty = require("lazyloading");
afterparty.autoInitialize();
// or afterparty.initialize({ selector: ".lazy-loading" });import afterparty, { autoInitialize, initialize } from "lazyloading";
autoInitialize();
// or initialize({ selector: ".lazy-loading" });The local demo script (src/index.js) is now just a thin wrapper around the shared core module:
window.AfterParty.autoInitialize();All package entrypoints (index.js, index.mjs, and src/index.js) resolve to the same implementation in src/afterparty-core.js, so updates happen in one place.