{"_id":"imagesloaded","_rev":"25-ed511dad5090d85435c8168e2d59fbba","name":"imagesloaded","description":"JavaScript is all like _You images done yet or what?_","dist-tags":{"latest":"5.0.0"},"versions":{"3.1.8":{"name":"imagesloaded","version":"3.1.8","description":"You images done yet or what?","main":"imagesloaded.js","devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.1.1","grunt-contrib-uglify":"~0.1.2","grunt-contrib-watch":"~0.3.1","highlight.js":"~7.3.0","marked":"~0.2.8","grunt-requirejs":"~0.4.0"},"dependencies":{"wolfy87-eventemitter":"4.x","eventie":">=1.0.4 <2"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","_id":"imagesloaded@3.1.8","dist":{"shasum":"2fb1fe8c8e6957ee390e880cc6d4ef7e436d457b","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-3.1.8.tgz","integrity":"sha512-xkgCKsYL9TrT6y+7Xc1s4cWhnEeLfKZttUJtQfRRbbQWt73sRets5Lk93Qpc4amTgzqKBZwEgIzxBVrkQLhOCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOpv48xQVHbKEGnblmcS++PxaSH9IzvEpe6FL6ElTv5AiEA4p7NIpl7dhx7a4b9J1TIWWSsiOROcIWQssCKygYK+/c="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"directories":{}},"3.2.0":{"name":"imagesloaded","version":"3.2.0","description":"You images done yet or what?","main":"imagesloaded.js","dependencies":{"wolfy87-eventemitter":">=4.2 <5.0","eventie":"~1.0.4"},"devDependencies":{"chalk":"^1.1.1","cheerio":"^0.19.0","gulp":"^3.9.0","gulp-jshint":"^1.11.2","gulp-json-lint":"^0.1.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-uglify":"^1.4.2","gulp-util":"^3.0.7","highlight.js":"^8.9.1","marked":"^0.3.5","minimist":"^1.2.0","requirejs":"^2.1.20","through2":"^2.0.0"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David DeSandro"},"gitHead":"5aac318e5cb34996f25a10e939bba498792b96c5","_id":"imagesloaded@3.2.0","_shasum":"31f7c0840dee77184ce6ff9e81ae51936f4e5384","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"31f7c0840dee77184ce6ff9e81ae51936f4e5384","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-3.2.0.tgz","integrity":"sha512-lLmK/f231SCmjFruHsYsIgNnHotCfeH+uYD8VmP7W3QborGvIu0AX1EigRAD7kUjaAetkn+k0Rl2hCgQ50N0hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7Y7sK3khHYurl0UQwCcc2xRwTpLYKN5ZuQw5WMOqo/AIgOkeAUC2LvXX2athFSs1Obgz8kLfx586ChLQUozgk9YQ="}]}},"4.0.0":{"name":"imagesloaded","version":"4.0.0","description":"You images done yet or what?","main":"imagesloaded.js","dependencies":{"wolfy87-eventemitter":">=4.2 <5.0"},"devDependencies":{"chalk":"^1.1.1","cheerio":"^0.19.0","gulp":"^3.9.0","gulp-jshint":"^1.11.2","gulp-json-lint":"^0.1.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-uglify":"^1.4.2","gulp-util":"^3.0.7","highlight.js":"^8.9.1","marked":"^0.3.5","minimist":"^1.2.0","requirejs":"^2.1.20","through2":"^2.0.0"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David DeSandro"},"gitHead":"c8b41695e9456db561426eb3f2a34ebb4cf52339","_id":"imagesloaded@4.0.0","_shasum":"d68f01335cc1f91874b51a10b7ead31148a0c945","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"d68f01335cc1f91874b51a10b7ead31148a0c945","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-4.0.0.tgz","integrity":"sha512-eV2wNyCj3FNdMESq1/hIRxKY9f/zBq94N7fShYvGJz2OTqHYGPy8bE6SkaBcjqWMYE5JrRp4gLq7w3w8okRdww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYNP58KCHzEK3QvWoPLnRc+RAJYl3Jknat+gK2cq8HZwIgPvMnjfbEQ/MkwOh7mAZdUppdCn2+355O1f4+aeNdKB8="}]}},"4.1.0":{"name":"imagesloaded","version":"4.1.0","description":"You images done yet or what?","main":"imagesloaded.js","dependencies":{"ev-emitter":"~1.0.0"},"devDependencies":{"chalk":"^1.1.1","cheerio":"^0.19.0","gulp":"^3.9.0","gulp-jshint":"^1.11.2","gulp-json-lint":"^0.1.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-uglify":"^1.4.2","gulp-util":"^3.0.7","highlight.js":"^8.9.1","marked":"^0.3.5","minimist":"^1.2.0","requirejs":"^2.1.20","through2":"^2.0.0"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David DeSandro"},"gitHead":"eb483b9b5e1edcc06daa6bb980810b4accd406f0","_id":"imagesloaded@4.1.0","_shasum":"cfb2b74432c88dcbe3e9f393fb1d9a6b04d3ec26","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"cfb2b74432c88dcbe3e9f393fb1d9a6b04d3ec26","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-4.1.0.tgz","integrity":"sha512-bkONWC7uTtdyxmCDwgw6UKdPPF+GB8kdkYiZV++iDI5whw7Zfw0HjNDJBzazsMdJu6zXiE9MJnlhakHjoCRkOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK1zf0R1iL3NBCt6suX8OsbDbrq/ljjtX587RISwis0AIgBrurlutc4fMfam8dXIFVVJ9JNR2oIyLvE1QO5HECpQg="}]}},"4.1.1":{"name":"imagesloaded","version":"4.1.1","description":"JavaScript is all like _You images done yet or what?_","main":"imagesloaded.js","dependencies":{"ev-emitter":"~1.0.0"},"devDependencies":{"chalk":"^1.1.1","cheerio":"^0.19.0","gulp":"^3.9.0","gulp-jshint":"^1.11.2","gulp-json-lint":"^0.1.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-uglify":"^1.4.2","gulp-util":"^3.0.7","highlight.js":"^8.9.1","marked":"^0.3.5","minimist":"^1.2.0","requirejs":"^2.1.20","through2":"^2.0.0"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David DeSandro"},"gitHead":"72b5d600a435803ab1dd2c549b8cba2941ab79ba","_id":"imagesloaded@4.1.1","_shasum":"53b5b66615360850a5a264b1293e7f4d06d3bd51","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"53b5b66615360850a5a264b1293e7f4d06d3bd51","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-4.1.1.tgz","integrity":"sha512-J5UMbudHTX3uAYvra0a+7PUfINgsVONO8xFTkkaQl11/BP48zterkFLnPv58i/BsVQiv5hWsiQCvs0wiKGYxeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7mV1p/bYUm6ACTfrSdXFZId6pP/e9IhDMVjrO2/STXAIgWpxCxbz07d0rbsVBXGlNKjdEIt9wczx3KDz0W42opcs="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/imagesloaded-4.1.1.tgz_1472395696084_0.5011548567563295"}},"4.1.2":{"name":"imagesloaded","version":"4.1.2","description":"JavaScript is all like _You images done yet or what?_","main":"imagesloaded.js","dependencies":{"ev-emitter":"~1.0.0"},"devDependencies":{"chalk":"^1.1.1","cheerio":"^0.19.0","gulp":"^3.9.0","gulp-jshint":"^1.11.2","gulp-json-lint":"^0.1.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-uglify":"^1.4.2","gulp-util":"^3.0.7","highlight.js":"^8.9.1","marked":"^0.3.5","minimist":"^1.2.0","requirejs":"^2.1.20","through2":"^2.0.0"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David DeSandro"},"gitHead":"d5379d360beb0a051674fd3d9398fed3f6619410","_id":"imagesloaded@4.1.2","_shasum":"9d1e094112ad3fe6445289c470d975627819df0d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"9d1e094112ad3fe6445289c470d975627819df0d","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-4.1.2.tgz","integrity":"sha512-5IGqZiHiwbqO6HZR/iqRLNlvc5zArTW5VdAbMldaB7MoMbJMdTszbMXuf4ONx9A8Wab6v2RmHNWl2bhYVqkAWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE9b/PyW962Z8EYkVG1VKsR4zYeIYIfvcXtZy0UCzHB2AiBOykNVaBwrfoo5PdONdN6EYnLbJDCb5WEu4bIZhcNNKw=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/imagesloaded-4.1.2.tgz_1493910529698_0.2538759799208492"}},"4.1.3":{"name":"imagesloaded","version":"4.1.3","description":"JavaScript is all like _You images done yet or what?_","main":"imagesloaded.js","dependencies":{"ev-emitter":"^1.0.0"},"devDependencies":{"chalk":"^1.1.1","cheerio":"^0.19.0","gulp":"^3.9.0","gulp-jshint":"^1.11.2","gulp-json-lint":"^0.1.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-uglify":"^1.4.2","gulp-util":"^3.0.7","highlight.js":"^8.9.1","marked":"^0.3.5","minimist":"^1.2.0","requirejs":"^2.1.20","through2":"^2.0.0"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David DeSandro"},"gitHead":"07bda7e92eb5b994363c5e648a0a40bafb5bf5bc","_id":"imagesloaded@4.1.3","_npmVersion":"5.0.0","_nodeVersion":"6.9.1","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"integrity":"sha512-cjwkbOXFgDAuh1kpAwIvWfcUkQF9NXLlzS38L4szgiYeNCFFyNetblG5/OFzo4JweNxuDOk+5AIPlqFVIBIInA==","shasum":"94b82a069e532c9da112a4ea3960e58424a42be4","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-4.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5Xt0DbhtmneOw0tc6FAcRV0n7yDk1e9vfH0DJNrVVzAiAIXF5R0Sy+Q0re1v8+y5RmPPE90l64CSlttX1PGF1mgQ=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/imagesloaded-4.1.3.tgz_1497294560844_0.7558410465717316"}},"4.1.4":{"name":"imagesloaded","version":"4.1.4","description":"JavaScript is all like _You images done yet or what?_","main":"imagesloaded.js","dependencies":{"ev-emitter":"^1.0.0"},"devDependencies":{"chalk":"^1.1.1","cheerio":"^0.19.0","gulp":"^3.9.0","gulp-jshint":"^1.11.2","gulp-json-lint":"^0.1.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-requirejs-optimize":"github:metafizzy/gulp-requirejs-optimize","gulp-uglify":"^1.4.2","gulp-util":"^3.0.7","highlight.js":"^8.9.1","marked":"^0.3.5","minimist":"^1.2.0","transfob":"^1.0.0"},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David DeSandro"},"gitHead":"67c4e57453120935180c45c6820e7d3fbd2ea1f9","_id":"imagesloaded@4.1.4","_npmVersion":"5.6.0","_nodeVersion":"6.9.1","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"integrity":"sha512-ltiBVcYpc/TYTF5nolkMNsnREHW+ICvfQ3Yla2Sgr71YFwQ86bDwV9hgpFhFtrGPuwEx5+LqOHIrdXBdoWwwsA==","shasum":"1376efcd162bb768c34c3727ac89cc04051f3cc7","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-4.1.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUzbia4mT704gH/kSGsQcpyFRr4SPV+DxVAdt8p0od9AiEAjNpE0TznPtbir4gui1MTqqVokon4hDb6aCMcizS4dcE="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/imagesloaded-4.1.4.tgz_1514912162072_0.134036460891366"}},"5.0.0":{"name":"imagesloaded","version":"5.0.0","description":"JavaScript is all like _You images done yet or what?_","main":"imagesloaded.js","dependencies":{"ev-emitter":"^2.1.2"},"devDependencies":{"eslint":"^7.32.0","eslint-plugin-metafizzy":"^1.2.1","jquery":"^3.6.0","qunit":"^2.17.2","terser":"^5.10.0"},"scripts":{"test":"npm run lint","lint":"npx eslint .","dist":"node tasks/dist.js","version":"node tasks/version.js && npm run dist && git add -A ."},"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"keywords":["images","loaded","ui","dom","jquery-plugin"],"license":"MIT","bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"homepage":"https://github.com/desandro/imagesloaded","directories":{"test":"test"},"author":{"name":"David DeSandro"},"gitHead":"6d07d12b32cf7cbc15fbdb8eb203f01f4954c7fe","_id":"imagesloaded@5.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.4.0","dist":{"integrity":"sha512-/0JGSubc1MTCoDKVmonLHgbifBWHdyLkun+R/151E1c5n79hiSxcd7cB7mPXFgojYu8xnRZv7GYxzKoxW8BetQ==","shasum":"e614e5de482769dd7d571ca62d947d0d00183847","tarball":"https://registry.npmjs.org/imagesloaded/-/imagesloaded-5.0.0.tgz","fileCount":6,"unpackedSize":36863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEu3hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHtxAAkzelXEC7OuOWLcGNTqMz1o8MX4weHQpifcWeH/jtji4ch6rV\r\nYSiGmy6vTNDSIZDNBchc73BTBZjWiFTMBUsGupcyAPQaVU/lB8nrYeYTTtTV\r\nzj4i/HoUbgNt/gs9bxgrKvLrMsjhKfNkHbhY/YADQTylvYkZ/cdeezTqO1qt\r\nla4+uwdPDJQUVZl7Wsg1oIHCMNoFbI3b5FjskAGjPlEYkQNAz6NSgzXQhWX0\r\nDflOD8eIg/HDluSQSb95zF6u5q5gZIYiO07COx7L8Zy6pk/WCNFCGc//VFBA\r\nkGp30LurZxvm62Sf1Vj8W5Z35StJShCDYu1BqOEt/T5Fhc/K4D8tH6VmpB68\r\n85LJ7+4cHMVZ8kg2HaVdmd3hVTtjbIVYEtqmzl4Ue/hlb4g2hwLJaU2Ym1MG\r\nIdaNuHDlYuFvvC2WJEdKMVbU0k8ffYYTvsom9Z3NGykEf1YUqZE0LYlImNzn\r\nUSRfnP3bCmpnmoFE/cTRAqiax0QAcXYvPiyAHd0lm5LK+5mhutpnjZ8SyL1I\r\nBYoG8OH/aTNrNgsje6g28CdKHTFtyC4hH2TJcXNU7VXUSfaNxQ6mjchiL1jz\r\nPDGwBYImpWb8mBrcDXpLnvxOCz9dggU0LciqeCgYzUlIfzwIwZBG1HX5YYGA\r\nyvQX2aCUlQF6Ij1IfTl/lyScRX8i3MdJtlY=\r\n=ZGF5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOHBvrT4pZiCK88XYIC9Y0Xwer048lZNn9uzcaAAyFxAiEA2IossZzcC0np79JO1JptcD3W6gjPf/aLLyyghG05QJE="}]},"_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/imagesloaded_5.0.0_1645407713520_0.9550501396021318"},"_hasShrinkwrap":false}},"readme":"# imagesLoaded\n\n<p class=\"tagline\">JavaScript is all like \"You images done yet or what?\"</p>\n\n[imagesloaded.desandro.com](https://imagesloaded.desandro.com)\n\nDetect when images have been loaded.\n\n## Install\n\n### Download\n\n+ [imagesloaded.pkgd.min.js](https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js) minified\n+ [imagesloaded.pkgd.js](https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.js) un-minified\n\n### CDN\n\n``` html\n<script src=\"https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js\"></script>\n<!-- or -->\n<script src=\"https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.js\"></script>\n```\n\n### Package managers\n\nInstall via npm: `npm install imagesloaded`\n\nInstall via Yarn: `yarn add imagesloaded`\n\n## jQuery\n\nYou can use imagesLoaded as a jQuery Plugin.\n\n``` js\n$('#container').imagesLoaded( function() {\n  // images have loaded\n});\n\n// options\n$('#container').imagesLoaded( {\n  // options...\n  },\n  function() {\n    // images have loaded\n  }\n);\n```\n\n`.imagesLoaded()` returns a [jQuery Deferred object](https://api.jquery.com/category/deferred-object/). This allows you to use `.always()`, `.done()`, `.fail()` and `.progress()`.\n\n``` js\n$('#container').imagesLoaded()\n  .always( function( instance ) {\n    console.log('all images loaded');\n  })\n  .done( function( instance ) {\n    console.log('all images successfully loaded');\n  })\n  .fail( function() {\n    console.log('all images loaded, at least one is broken');\n  })\n  .progress( function( instance, image ) {\n    var result = image.isLoaded ? 'loaded' : 'broken';\n    console.log( 'image is ' + result + ' for ' + image.img.src );\n  });\n```\n\n## Vanilla JavaScript\n\nYou can use imagesLoaded with vanilla JS.\n\n``` js\nimagesLoaded( elem, callback )\n// options\nimagesLoaded( elem, options, callback )\n// you can use `new` if you like\nnew imagesLoaded( elem, callback )\n```\n\n+ `elem` _Element, NodeList, Array, or Selector String_\n+ `options` _Object_\n+ `callback` _Function_ - function triggered after all images have been loaded\n\nUsing a callback function is the same as binding it to the `always` event (see below).\n\n``` js\n// element\nimagesLoaded( document.querySelector('#container'), function( instance ) {\n  console.log('all images are loaded');\n});\n// selector string\nimagesLoaded( '#container', function() {...});\n// multiple elements\nvar posts = document.querySelectorAll('.post');\nimagesLoaded( posts, function() {...});\n```\n\nBind events with vanilla JS with .on(), .off(), and .once() methods.\n\n``` js\nvar imgLoad = imagesLoaded( elem );\nfunction onAlways( instance ) {\n  console.log('all images are loaded');\n}\n// bind with .on()\nimgLoad.on( 'always', onAlways );\n// unbind with .off()\nimgLoad.off( 'always', onAlways );\n```\n\n## Background\n\nDetect when background images have loaded, in addition to `<img>`s.\n\nSet `{ background: true }` to detect when the element's background image has loaded.\n\n``` js\n// jQuery\n$('#container').imagesLoaded( { background: true }, function() {\n  console.log('#container background image loaded');\n});\n\n// vanilla JS\nimagesLoaded( '#container', { background: true }, function() {\n  console.log('#container background image loaded');\n});\n```\n\n[See jQuery demo](https://codepen.io/desandro/pen/pjVMPB) or [vanilla JS demo](https://codepen.io/desandro/pen/avKooW) on CodePen.\n\nSet to a selector string like `{ background: '.item' }` to detect when the background images of child elements have loaded.\n\n``` js\n// jQuery\n$('#container').imagesLoaded( { background: '.item' }, function() {\n  console.log('all .item background images loaded');\n});\n\n// vanilla JS\nimagesLoaded( '#container', { background: '.item' }, function() {\n  console.log('all .item background images loaded');\n});\n```\n\n[See jQuery demo](https://codepen.io/desandro/pen/avKoZL) or [vanilla JS demo](https://codepen.io/desandro/pen/vNrBGz) on CodePen.\n\n## Events\n\n### always\n\n``` js\n// jQuery\n$('#container').imagesLoaded().always( function( instance ) {\n  console.log('ALWAYS - all images have been loaded');\n});\n\n// vanilla JS\nimgLoad.on( 'always', function( instance ) {\n  console.log('ALWAYS - all images have been loaded');\n});\n```\n\nTriggered after all images have been either loaded or confirmed broken.\n\n+ `instance` _imagesLoaded_ - the imagesLoaded instance\n\n### done\n\n``` js\n// jQuery\n$('#container').imagesLoaded().done( function( instance ) {\n  console.log('DONE  - all images have been successfully loaded');\n});\n\n// vanilla JS\nimgLoad.on( 'done', function( instance ) {\n  console.log('DONE  - all images have been successfully loaded');\n});\n```\n\nTriggered after all images have successfully loaded without any broken images.\n\n### fail\n\n``` js\n$('#container').imagesLoaded().fail( function( instance ) {\n  console.log('FAIL - all images loaded, at least one is broken');\n});\n\n// vanilla JS\nimgLoad.on( 'fail', function( instance ) {\n  console.log('FAIL - all images loaded, at least one is broken');\n});\n```\n\nTriggered after all images have been loaded with at least one broken image.\n\n### progress\n\n``` js\nimgLoad.on( 'progress', function( instance, image ) {\n  var result = image.isLoaded ? 'loaded' : 'broken';\n  console.log( 'image is ' + result + ' for ' + image.img.src );\n});\n```\n\nTriggered after each image has been loaded.\n\n+ `instance` _imagesLoaded_ - the imagesLoaded instance\n+ `image` _LoadingImage_ - the LoadingImage instance of the loaded image\n\n<!-- sponsored -->\n\n## Properties\n\n### LoadingImage.img\n\n_Image_ - The `img` element\n\n### LoadingImage.isLoaded\n\n_Boolean_ - `true` when the image has successfully loaded\n\n### imagesLoaded.images\n\nArray of _LoadingImage_ instances for each image detected\n\n``` js\nvar imgLoad = imagesLoaded('#container');\nimgLoad.on( 'always', function() {\n  console.log( imgLoad.images.length + ' images loaded' );\n  // detect which image is broken\n  for ( var i = 0, len = imgLoad.images.length; i < len; i++ ) {\n    var image = imgLoad.images[i];\n    var result = image.isLoaded ? 'loaded' : 'broken';\n    console.log( 'image is ' + result + ' for ' + image.img.src );\n  }\n});\n```\n\n## Webpack\n\nInstall imagesLoaded with npm.\n\n``` bash\nnpm install imagesloaded\n```\n\nYou can then `require('imagesloaded')`.\n\n``` js\n// main.js\nvar imagesLoaded = require('imagesloaded');\n\nimagesLoaded( '#container', function() {\n  // images have loaded\n});\n```\n\nUse `.makeJQueryPlugin` to make `.imagesLoaded()` jQuery plugin.\n\n``` js\n// main.js\nvar imagesLoaded = require('imagesloaded');\nvar $ = require('jquery');\n\n// provide jQuery argument\nimagesLoaded.makeJQueryPlugin( $ );\n// now use .imagesLoaded() jQuery plugin\n$('#container').imagesLoaded( function() {...});\n```\n\nRun webpack.\n\n``` bash\nwebpack main.js bundle.js\n```\n\n## Browserify\n\nimagesLoaded works with [Browserify](https://browserify.org/).\n\n``` bash\nnpm install imagesloaded --save\n```\n\n``` js\nvar imagesLoaded = require('imagesloaded');\n\nimagesLoaded( elem, function() {...} );\n```\n\nUse `.makeJQueryPlugin` to make to use `.imagesLoaded()` jQuery plugin.\n\n``` js\nvar $ = require('jquery');\nvar imagesLoaded = require('imagesloaded');\n\n// provide jQuery argument\nimagesLoaded.makeJQueryPlugin( $ );\n// now use .imagesLoaded() jQuery plugin\n$('#container').imagesLoaded( function() {...});\n```\n\n\n## Browser support\n\n+ Chrome 49+\n+ Firefox 41+\n+ Edge 14+\n+ iOS Safari 8+\n\nUse [imagesLoaded v4](https://github.com/desandro/imagesloaded/tree/v4.1.4) for Internet Explorer and other older browser support.\n\n## Development\n\nDevelopment uses Node.js v16 with npm v8\n\n``` bash\nnvm use\n```\n\n## MIT License\n\nimagesLoaded is released under the [MIT License](https://desandro.mit-license.org/). Have at it.\n","maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"time":{"modified":"2022-06-19T00:38:51.300Z","created":"2014-06-14T13:12:14.288Z","3.1.8":"2014-06-14T13:12:14.288Z","3.2.0":"2015-10-29T03:04:32.051Z","4.0.0":"2015-12-28T15:12:13.421Z","4.1.0":"2016-01-15T14:56:35.710Z","4.1.1":"2016-08-28T14:48:17.205Z","4.1.2":"2017-05-04T15:08:52.246Z","4.1.3":"2017-06-12T19:09:22.220Z","4.1.4":"2018-01-02T16:56:03.603Z","5.0.0":"2022-02-21T01:41:53.663Z"},"homepage":"https://github.com/desandro/imagesloaded","keywords":["images","loaded","ui","dom","jquery-plugin"],"repository":{"type":"git","url":"git://github.com/desandro/imagesloaded.git"},"bugs":{"url":"https://github.com/desandro/imagesloaded/issues"},"license":"MIT","readmeFilename":"README.md","author":{"name":"David DeSandro"},"users":{"wtower":true,"fabrianibrahim":true,"wearevilla":true,"adammench":true,"jakedalus":true,"hugojosefson":true,"bobz":true,"xfloops":true,"colleowino":true,"claytoncollie":true}}