{"_id":"better_deferred","_rev":"9-527a9656065d64d6fbb0d9f4cf746935","time":{"1.0.0":"2021-03-22T00:19:57.514Z","created":"2021-03-27T19:38:14.318Z","1.0.1":"2021-03-27T19:38:14.430Z","modified":"2023-04-10T18:49:25.699Z","1.0.2":"2021-11-28T22:53:52.179Z","1.1.0":"2022-09-16T06:39:39.183Z","1.2.0":"2022-09-16T06:47:48.975Z","2.0.0":"2023-01-06T23:03:10.339Z","2.0.1":"2023-04-06T07:59:53.109Z","2.0.2":"2023-04-10T18:49:25.597Z"},"name":"better_deferred","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.1":{"name":"better_deferred","version":"1.0.1","description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","main":"src/index.js","scripts":{"start":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=development","watch":"watch 'npm run start' ./src","build":"npm run build:clean && npm run build:lib","build:clean":"rm -rf dist","build:lib":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=production","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"keywords":["javascript","defer","async","performance"],"author":{"name":"Armando Murga"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"homepage":"https://github.com/MrMurga/better_deferred#readme","devDependencies":{"webpack":"^5.25.1","webpack-cli":"^4.5.0"},"dependencies":{"watch":"^1.0.2"},"gitHead":"92cc7838f2cdd262931e9d82f85866c6e85ccc59","_id":"better_deferred@1.0.1","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GJ74OjAFLjFA9NJtgNvqRHHSiUgjlPQNNI6IPngc0Z2WvQHgPS7a70//HatFXPQ7JJ+P7G6NPaVdxzTc2P6IuA==","shasum":"99d5bad56549dd7ff9343cc42d49d5ba10f721e3","tarball":"https://registry.npmjs.org/better_deferred/-/better_deferred-1.0.1.tgz","fileCount":6,"unpackedSize":10959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX4mmCRA9TVsSAnZWagAAzA8QAInrToJuHKrtp/jw+EQq\ngjI7P+UrJHzuQOsCFUgCYQHkqgwu4qJMVWgOQtm2TqfvdTuu6dePZzjEjCDI\n9tNdX2MP9oZuWsYcU+iF5rd9lVX0ElLav3Saq7EtuvJyjtsyMkpbxAVrMe7K\nZtcYezWBVidQP49x6A1osLzVP0/0+WZL1DwFD6aNMSYxHNyAuN4Lw+CHVMlr\nx9yLjBBr/yNgttuZWIQJKh2fC5i5qFEsGQCUE6HbFT/4BSq/RlF4CULzGmKK\nVIMQaz9WK+VNEFOwPXevG84Gomy9kF6X/kHlH04RZA6Sc2B88FqPztegz3FW\nGkzcRBQ8Fv1vWFjT1jMWTfVm9Sfe+FsFRP4EMLLuYNGLAQJwEmNt1wL8svxf\noji86l97aSJMaZbEPm5ALG46Iakkk6uMBcjzJEnrPjrUaa+aDAcMutxXO32k\nDzCqn3UwFY3hTfOqnHJcnG0DthyfDzYQcqOGzlO07pNludZD1W5fag7sSGn9\nsBZw+IDcFmd+pXMySqxcqPIbS8XaM8P9tLix9ZlOyrEAqKsPZqCrXtNPYtEW\n9YvGSkLu+FJiqDxSyPp+YZ8VFUeCrAF6hu9E4pF4Zp4dELxN286kqs3GkWNo\nNO5OsXn3mMNBNDyVuPQNx224TF/Xi04mtOzFNETpOsW7uXmLCgNbzDnZu8tD\nMlqH\r\n=P/fH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1cc7RzwHPNCAP8m0EckYm/EBtf+emprQW6kbeawcWmQIgTeWvLp2IaVKSv4jABPQ/MLAzDpTjP2Yvwjse88uOONk="}]},"_npmUser":{"name":"armando8","email":"armandommurga@gmail.com"},"directories":{},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better_deferred_1.0.1_1616873894319_0.0758291702555629"},"_hasShrinkwrap":false},"1.0.2":{"name":"better_deferred","version":"1.0.2","description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","main":"src/index.js","scripts":{"start":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=development","watch":"watch 'npm run start' ./src","build":"npm run build:clean && npm run build:lib","build:clean":"rm -rf dist","build:lib":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=production","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"keywords":["javascript","defer","async","performance"],"author":{"name":"Armando Murga"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"homepage":"https://github.com/MrMurga/better_deferred#readme","devDependencies":{"webpack":"^5.25.1","webpack-cli":"^4.5.0"},"dependencies":{"watch":"^1.0.2"},"gitHead":"98e3d083b65422af1f6c034ff97f420f7193bad6","_id":"better_deferred@1.0.2","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-kDJoiZh7c4Tikxd0P/irhj4ND0AjW30p17CsrXPbcScRlf6i013jRc944AZNOYtW12oVUQwBxikWHSZluY2/Lw==","shasum":"125936ebab172bd8074252a591b046a29c60d134","tarball":"https://registry.npmjs.org/better_deferred/-/better_deferred-1.0.2.tgz","fileCount":5,"unpackedSize":7397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpAiACRA9TVsSAnZWagAAjO8P/2/CrUEr40Pnc7g79W+W\nrk3tOf95yE7LamucbMkHl9EZEtz650WxxY0vBMLhdBBW7T6LSwSiSVIm8CJw\nKneD/0kle2A0UVxHRGUwkoEwQ9LgbZihQC++Xo5Y+pvuW19FsZcNVij42ygF\naiLXRxxeqlAz39hlZlhcIukNFXViJxkvyCqcfe5VcIIIJVE5akj9x5ZYHHch\nzfrkwaTzwswRXGFzZvo91IMmoQOhct9xwSADW8I+xJhFaHonZpUa742qkcak\nvfa8iESa8H+qa+DM8xw2IcfqlpuSSelva8tTBp1Z7tTFi6YG4kpw5J+O3hYi\nSUC2Vl4+bMt56yizRPV0uYJXX7Cjv9A3zAwoDGYs2jqstrOMzbcvqYnc/614\ngCO0vA5hgF2ZDOeLNU3Q60gnO7xWne7W2XWqiNZ/zBQA8mD7ZsdB2YVTCWrG\n5cxQ7fr6HAXb2nV60gi14wMtrJ/MWNv31yll33mcvT/83qrhJfFMfkx2kaNy\nYRRXf0e0Z0FBK6eycecmPzilqTaD00pI5ZziNKv09tvmlY0rLGmHcup1WiJS\n+d/pKl5SY3SissIYivTRYmZmVEbNbu3NozN3K4835lEs1tpBKZpAM9v60Q4q\nykdp4g2I0FRaRc2LrQMtloS+5cogAY1wVrByi753F7QeEJn+4vhHAQj7mdjc\nUdhU\r\n=+fO1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMVJbBB+r4Lym2gEKDnKgPzWgZ2C+hWA6cEbXw0qitBAiA3dRFfexb53yw8vbw2Dfno0mkJphjsN6n5B5F1OeG7fA=="}]},"_npmUser":{"name":"armando8","email":"armandommurga@gmail.com"},"directories":{},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better_deferred_1.0.2_1638140032048_0.2760846554846679"},"_hasShrinkwrap":false},"1.1.0":{"name":"better_deferred","version":"1.1.0","description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","main":"src/index.js","scripts":{"start":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=development","watch":"watch 'npm run start' ./src","build":"npm run build:clean && npm run build:lib","build:clean":"rm -rf dist","build:lib":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=production","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"keywords":["javascript","defer","async","performance"],"author":{"name":"Armando Murga"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"homepage":"https://github.com/MrMurga/better_deferred#readme","devDependencies":{"webpack":"^5.25.1","webpack-cli":"^4.5.0"},"dependencies":{"watch":"^1.0.2"},"gitHead":"cc7ecb35050efeda0a0a3ddf2b9104d1dfb68192","_id":"better_deferred@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-Fjmyz52mUehL/4jSAE6TlDDhFASsT+ZDJnQjjGTJN2+I6nwva9rRJF5LPF+0VpwjZKZYJ4cGdFpsDDQj+qggeg==","shasum":"235b27b0cb7aa8feb0c122aca8ce64dfc9bea6e8","tarball":"https://registry.npmjs.org/better_deferred/-/better_deferred-1.1.0.tgz","fileCount":7,"unpackedSize":12998,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDCxRjESCD+exP6dhz7FhprPBc8TCEX9YohIC7NPXLwgIgQWj56/CzMLTmztHbKoQusNNwggnhvTi7pFexsg2Z8kA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJBorACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquEQ/+Ixt6YKGee4kDUnmssKVdeYO0kRicg5GwpiR5F+86iI51Jnmz\r\ns44zTwDQJ2BrWj/uGQ158Jqgjec+2N2hr5yUk8LWidkok/CedblH/W8EvPoQ\r\nGT6WFdMzkCfLWGCRwtETtfzMa1Qd4/nJHwknw1IilMJcKigV5uzv8Mfh+Psq\r\nuMDyIU/U927ARshp477TqHROJD8yCSkfGirdoS/CTJmz6iNrNzq6kVJB9BgU\r\n/PUBzhSLpkPpfXljUKCRCJUsO2CakPpZCODPkniL4GmwwjVvuV09z7enQhwI\r\nDcUwzu/M53sFqMT+c7eLZ6DV2GpEZpCnNg5V3WaUmmHsufmNER8UNgr4vuao\r\n+8SjD1aqmMmRBODDkIXsG+ZLCKhtOlKhLC4PAZPHZGhp2r4zw3/BjZIt6ZL1\r\nUqFjMqA6rXAl1cjiYDTEZcvWtWKplr6cpPkjLZ31oyu538FhI88qJhtDQzta\r\nkg6QRyLE5/1azWTfvcRLvJPokSrzuMIPpCrf2v6OrNILACLSd5CYMGfPdWgY\r\nUBAyTi7gY1ZyjAanMJLpsQcCrhCo00/5ji4T4FE8uamhWai58+6Y7IeatoDW\r\n6krwqf8XJ4bFOY9NggwPNzZnn2olc5f8sYj97dlE5tmFyqiCbDvRxSBpSwq6\r\n70/ofzYPWW2y+A5r48nhqdsoRZ/SpLdLEeM=\r\n=Hbmr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"armando8","email":"armandommurga@gmail.com"},"directories":{},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better_deferred_1.1.0_1663310378948_0.9767688533722307"},"_hasShrinkwrap":false},"1.2.0":{"name":"better_deferred","version":"1.2.0","description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","main":"src/index.js","scripts":{"start":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=development","watch":"watch 'npm run start' ./src","build":"npm run build:clean && npm run build:lib","build:clean":"rm -rf dist","build:lib":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=production","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"keywords":["javascript","defer","async","performance"],"author":{"name":"Armando Murga"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"homepage":"https://github.com/MrMurga/better_deferred#readme","devDependencies":{"webpack":"^5.25.1","webpack-cli":"^4.5.0"},"dependencies":{"watch":"^1.0.2"},"gitHead":"49dc51865941cf09dd45094acfe578e9cd7505d9","_id":"better_deferred@1.2.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-OdzbsHzQ3ickGfkbknBElDRbQxFokO9M4uQI6SeLgY16fJi9FC/c6HchUx5lD/qTLpwN7dsGzEgskrXj+IzrPA==","shasum":"94a211fb0da85bd36f357437172e5cea55d296c9","tarball":"https://registry.npmjs.org/better_deferred/-/better_deferred-1.2.0.tgz","fileCount":5,"unpackedSize":8045,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgCKl5zKRM7BPrTvwcOTRUp35+0399P0zx61cMLQG+fQIgSy2qCrqn7hgnFBsBTpvFwAO0oxc+V2g78zZtxof+hko="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJBwVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5cw//YsLKtAYxzdCM1jTd0OYl7+4BMW7vf5mMJxYGwmjjtmb6onxe\r\ngX0t5YvipAE39+tcvgRUi2aVMwDNqtjLw9nfOjYrPV6XqrcEJIaVFDbFQPIV\r\nhQg5DsqgdwS/lBQozYyGqbw8bE0pT0kZ9jHKucuQ/uqcWqaF0yxH7JDAEjUx\r\naKcUeXmh3+VNvdPrw6sn8u7kkKAskxAhCWlrpAw7+UQitZITN90nnmdKAVoz\r\nCkh3E3Gm+N32OEWp8z08ORcamq7mnmo2PRPvzGpwTYuhTkiih7XZw6UfqGGP\r\niCGiQxZm2s5VVIBGM/8z0DxBgcjYNpsZzUZryxuSvFPTRqX8xE+lKcRscCyq\r\nwPt7SlhnZZHZvEpM5OSIZpCP8JSeBOaXuUks71hsPlSXCnFel3GhFXOnMwq8\r\nglhV0YuIIkd9vrMYORKCYD2Dlv/qHKTojEjU2hUARSYb0J5e8wg5Z4OyU653\r\njC4DIVg3kBauhiEBQQb0s9Daevd00yV2EfJ3Uekibt9IV0xpKuhUXiv2g92X\r\nsSuTNPRscY4sRlJewrri3hAhLCU7j9TjFQ/szGWrzgzO9oDxfQjrRiJbiwkw\r\nhv4K1/Uc3f/Uzzm8G5AejEwvmZHDmQmkVCLacB6Fekcdd2PJTvcDUQhjhExI\r\nAV4pu+Rci3o/m+enRzqg4ws8p6qabt48sLc=\r\n=JuD5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"armando8","email":"armandommurga@gmail.com"},"directories":{},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better_deferred_1.2.0_1663310868810_0.4440536282147285"},"_hasShrinkwrap":false},"2.0.0":{"name":"better_deferred","version":"2.0.0","description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","main":"src/index.js","scripts":{"start":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=development","watch":"watch 'npm run start' ./src","build":"npm run build:clean && npm run build:lib","build:clean":"rm -rf dist","build:lib":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=production","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"keywords":["javascript","defer","async","performance"],"author":{"name":"Armando Murga"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"homepage":"https://github.com/MrMurga/better_deferred#readme","devDependencies":{"webpack":"^5.25.1","webpack-cli":"^4.5.0"},"dependencies":{"watch":"^1.0.2"},"gitHead":"17f1eb8cb19df375f4974d133cb2c7d6c998f8c4","_id":"better_deferred@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-reJ1JZCol0OTt4f9IcClnKtFjZPTFN6XgsODm3pid7tjPiraAr434rlHlPwW+bsoIXjthrxZubaBVC3f+dQvxQ==","shasum":"08bf26b42698a45b543908d9daf291d7f5caf703","tarball":"https://registry.npmjs.org/better_deferred/-/better_deferred-2.0.0.tgz","fileCount":5,"unpackedSize":8140,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvOrFlNlmJD/SfQuSw9Ob7Q+dCnEXsmS6kuBp6sqtTjQIgUqD8mY23lTOhemN5NAuU/meh+rVGZpntaKaKkdMTPp0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjuKiuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotAQ/9Fvr0+SbTBivpJk80MjDcLvJ6uibGSo2cAarXWr1fJZrIaRN+\r\ntx3xrgLrjdltAkhNkae66aTDmSuWyUtAwHbL1D/T2N+itsF9dHq+dE2DaFbi\r\nqc/A13guViVqHlGnBV+J0v1a/fGi4/zls5fo1MF7qH7Hl7e2mmR9fLTyk1A9\r\nO88j1iL0ZSMQKZuDA7iZav2MznxbPWL390VXSOI38j25hlVuZuEWJEgyHzZ8\r\nX7JHzJ9ipvTReeh/W8UND0sthMGUKRJAY4FiAtNDQcyT9RJf5Y/KWz8BzUGP\r\n1O+eNx0v/PcGnPHjO/NzOGHAZd0T8scEKuEuKcaj/ho8MwFnbTZEg5+0GuNj\r\numLSswCMmyUsa9NGTaQd38G6QVriwr152oyiP36iJeV9OMo11/GZyUZ/E08m\r\n+ZJUsJvxeWCzVmc+XYz2AS2nHSwOP+DDHaI0o7Yst7gzI6ZP4M+8hVLXKpAC\r\n6vdH7g9J+5Oa/W68pL4zP6uKzYIypPrfDZqIFzn3rPhOLQiCTTaaYoqXXKfk\r\nUCGUC/fies5//baT398kJiy7omP15aKnYHQx/E3EC8auP6rsrohiKPKroy0Z\r\n3MgKz4TQmzaskNhUTX/J+72HklyXsZ815MZFVp3IuOLy7c75FEp2c9JlYRGO\r\nfSc0vPxixcCXaLORB8cXsV6FKLozZnloFUY=\r\n=ef2d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"armando8","email":"armandommurga@gmail.com"},"directories":{},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better_deferred_2.0.0_1673046190186_0.21717564788206056"},"_hasShrinkwrap":false},"2.0.1":{"name":"better_deferred","version":"2.0.1","description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","main":"src/index.js","scripts":{"start":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=development","watch":"watch 'npm run start' ./src","build":"npm run build:clean && npm run build:lib","build:clean":"rm -rf dist","build:lib":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=production","test":"npx playwright test"},"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"keywords":["javascript","defer","async","performance"],"author":{"name":"Armando Murga"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"homepage":"https://github.com/MrMurga/better_deferred#readme","devDependencies":{"@playwright/test":"^1.32.2","webpack":"^5.25.1","webpack-cli":"^4.5.0"},"dependencies":{"watch":"^1.0.2"},"gitHead":"769744719ce39c21c2e3b76bb598b9803b7667fb","_id":"better_deferred@2.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-BeVejgsQsDIqz1jX85oqJFXYAHy6Heo5ta95Gs9RWTfWEumvxuvNhO99hQtR6iHZ84fOl9WkXqtRoFXxCu4mrA==","shasum":"5e2f03e84dfaf4278eeb0e97fa02c68f8a722e1f","tarball":"https://registry.npmjs.org/better_deferred/-/better_deferred-2.0.1.tgz","fileCount":5,"unpackedSize":8600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEoZW72Keoil5WQzFbTRQkiHc67GMtd6B9NMY9b2MrCLAiEAxG1ppoCaEwlrPwb4m/Lfu6nKAzM71yXj2cu2zI+UDKI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLnv5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgbA/9Gt6JvLcWKcUJ6Ve5L+TB3y/ORk6mBCPJQyh6VpI0yoHs3qm4\r\nTSJy4slYrpXLeih7zy+usJBSrQE+fOAdzGe0vFmreXyN1M4JxMWyn7AUHeMO\r\noRkL1on5CXXENBxdYIxIn4xLFkvAesL7gc4LpEQ9NQZEyjt1As1+dVzwjzk9\r\n7/UYVPtP6f1b1llXrLj89wLAwCMKTO1xCPqiwSfCFHM5Mw5BX8gSH2FRJ2L1\r\nAnfQ9Ak7zbshcQXcSCdohta7UxlQxuan4CGP2+RpgCMhovmlfH4gPstBBkcE\r\nHxvyU2pOFF/mneWYboN3+jIPTHX4OOKgEpaPki2uNNv9CVg9Me1TVxVh+hvY\r\npa5AQvoZ6wk9iOk6ojmjK7bJ9Nnf72X6nZvJary93lDt6+0+cft9YQU7Spa7\r\nSemEYfzBBPNfFa5X3xI08zm6+8ddewPvTNm2Mn2dZKDlscakPUktHYEpnT6y\r\nFx//kth7Ikljqd6ScEzgu0Qb3yQku0rWT3z9soZ0nym3K89ErvFIS/a51YZd\r\nbl3OAk7p8RTEuljAZtVwlUL/amZU68oWha/zxgDnPjKltn2UDuLPoTL8ze+D\r\nxkvsw+ZL2IO47b0/oJLTAsZNq9fv30UF3miW8OoMLXh4/PLrYpp4ARVHjWTB\r\nQjvH927xs2WVTK3lHGSlXJ2lwqJkp0L2Z/0=\r\n=dVL5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"armando8","email":"armandommurga@gmail.com"},"directories":{},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better_deferred_2.0.1_1680767992964_0.4065319471037343"},"_hasShrinkwrap":false},"2.0.2":{"name":"better_deferred","version":"2.0.2","description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","main":"src/index.js","scripts":{"start":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=development","watch":"watch 'npm run start' ./src","build":"npm run build:clean && npm run build:lib","build:clean":"rm -rf dist","build:lib":"./node_modules/webpack/bin/webpack.js ./src/index.js --output-filename=bundle.js --mode=production","test":"npx playwright test"},"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"keywords":["javascript","defer","async","performance"],"author":{"name":"Armando Murga"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"homepage":"https://github.com/MrMurga/better_deferred#readme","devDependencies":{"@playwright/test":"^1.32.2","webpack":"^5.25.1","webpack-cli":"^4.5.0"},"dependencies":{"watch":"^1.0.2"},"gitHead":"f17ef4834827bac6fd92fe0963de6c597de1b42a","_id":"better_deferred@2.0.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-EmNOwj5iifrzk59PzCNlSwdVrnMuPh11vX8OrSDqXBsWIqsn5LcPxpIosZeZWVHIoUyo1SFgjfKwFWEVMfmvYg==","shasum":"b2b248862ab30c27b9117168c89237522a07f963","tarball":"https://registry.npmjs.org/better_deferred/-/better_deferred-2.0.2.tgz","fileCount":5,"unpackedSize":15776,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCamvSJn8QOEAGIWWIW8YSWBe2/lZudILNgZwA54ijEeQIgR7PSZRR2SkmQLOM7G/mNFVXd9nuxdz6bwGhVwqMQx0Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNFo1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+UA/+JDI0v+M+eOQSaqRZSBFJDPuoZ1VBCxY0RifpC1GRjYXIPVfV\r\nZbaBgyLUQeMXlcICFcRHk9gwADlsgYTv2XYUnWgWELZnulAEP/rcutUPWRNY\r\nJIK5A2Z5jzlFO8xTRVPME0C2osp0VGmOhDD+GfxcTVM3UQwrzxhAKfkbLsx+\r\nYMjQpE4/Pd0DQNNQ6iWOxcKGWODke61u8TDIbNcojXisqykDT4d5laF9gCmu\r\n6MFzj3ebVSR9JD8ECv5ZJt2zbm65l7xm+kln2cKnpUmcvci3HByhvta6v4lM\r\nsxdTV4HzURMAEWEgSFnkm5xR4mtwLVoZvgjm3yXcg+R06N2sZRgcVTtmY4aP\r\nUtBJUn7RVq0VtascsxNZEYOsj2UW7lps0+C9PDtcmGMlkuMr/iIq4OHh2wPn\r\n/Jc7ZXXqsWSgOTaBw3G1yHMO5PhYl3Xj92n//TydrWeuw1Pad0vhrMxo1qu5\r\nIy0cSRHm5v/oBYp17b8OGLbhNeN6MFTxRlFnq7vvlZAr9u3yb38l+Wl/G/Bt\r\nCBZdJDUf7BqBZBdyvP1Qs+c1hjbQ/zC7Z58JW12rtyauCMCFb2bDM8Mhsnqc\r\nu4f/3NUGub2xwl0/hL5ZswAC6678tb7RaFwWt98uThAvC6Od3Tj1U7RLYnoW\r\n8kmYlfrgiic6DunOGMvYLLmgsrjdt9hqeDs=\r\n=s8VD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"armando8","email":"armandommurga@gmail.com"},"directories":{},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better_deferred_2.0.2_1681152565392_0.22321844175610694"},"_hasShrinkwrap":false}},"maintainers":[{"name":"armando8","email":"armandommurga@gmail.com"}],"description":"Javascript library that truly defers the insertion of other Javascript libraries resulting in improved performance compared to using native defer or async.","homepage":"https://github.com/MrMurga/better_deferred#readme","keywords":["javascript","defer","async","performance"],"repository":{"type":"git","url":"git+https://github.com/MrMurga/better_deferred.git"},"author":{"name":"Armando Murga"},"bugs":{"url":"https://github.com/MrMurga/better_deferred/issues"},"license":"https://github.com/MrMurga/better_deferred/blob/main/LICENSE","readme":"# better_deferred\nThis is a depedency-free lightweight library that completely defers the download and evaluation of external Javascript post document.ready (plus a small delay) resulting in improved performance compared to using native defer or async. Native async / defer don't prevent the browser from downloading and evaluating external scripts prior to firing off document.ready which degrades performance and lighthouse scores.\n\nThe small delay is set to 5000 ms by default but it's customizable. This delay will allow you to get reduce time-to-interactive delays and will bring you closer to getting a high Lighthouse Performance score.\n\nPlease note that not all scripts are a good candidate to defer. For example, jQuery and Bootstrap are common libraries expected to be loaded as soon as possible in a page request.\n\n**Examples**\n\nThe following scripts is executed after (document.ready + 5 seconds):\n```\n<script type=\"better_deferred\" onload=\"console.log('loaded inline script');\">\n   alert('loaded');\n</script>\n```\n\n```\n<script type=\"better_deferred\" src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js\" onload=\"console.log('loaded external script');></script>\n```\n\nExternal scripts are loaded first (in the order they appear), then inline scripts follow (in the order they appear).\n\n# Triggering early load of better_deferred scripts\nAny html element with the class better_deferred_trigger will be given a listener for mouse over, touch move, and focus; which will trigger the early load of better_deferred scripts once.\n\nAdditionally, to early trigger manually you can call `window[window['_bd_name']].start()`.\n\n# Loaded scripts\nWhen scripts are loaded, they are given the type `loaded_better_deferred` and the bottom of the document will include a reciprocating script of type `text/javascript`.\n\n# Support for lozad\nA case I wanted to support is to load external scripts earlier if they become relevant to the user by detecting whether lozad has loaded related elements in the page.\n\nFor example, if an element to declare Calendly isn't visible yet, then I'd like to lazy load the Calendly script except if the element becomes visible and the user is likely to interact with it. So this library sets Mutation observers for `better_deferred` scripts when the parent has the `lozad` class. Upon lozad making the element visible, this library detects changes to `data-loaded` and will immediate start loading all deferred scripts.\n\n## Mime Types\n\nThis library support addition of custom MIME types when the script is loaded. This defaults to `type=\"application/javascript\"` this can be overridden by setting `data-mime-type` value. For example for ESM, the `type=\"module\"` needs to be set, since this is deferred, this can be set as `data-mime-type=\"module` or any of the [JS IANA types](http://www.iana.org/assignments/media-types/media-types.xhtml).\n\n```\n<script type=\"better_deferred\" data-mime-type=\"module\">\n   import * as d3 from 'https://esm.run/d3';\n   console.log('esm module', d3);\n</script>\n```\n\n## Customization\nBy default inline scripts and external scripts will be\n```\nwindow['_bd_timeout'] = 5000;\n```\n\nTo prevent name collision, this library is instantiated in\n`window[window['_bd_name']]`. This means that you can use the following pattern to set where this object is stored.\n\n```\nwindow['_bd_name'] = '_new_name_to_prevent_collisions'\n```\n\n## Development\n```\nnpm run watch\n```\n## Build\n```\nnpm run build\n```\n\n## Publish\n```\nnpm publish\n```\n\n# Creating Repo\nInspiration from:\n- https://www.cybergrx.com/resources/research-and-insights/blog/how-to-create-a-barebones-production-ready-npm-package-with-babel-7\n- https://docs.npmjs.com/\n\n# Run tests locally\nBe sure to install all dependencies, then run tests:\n```\nnpx playwright install --with-deps\nnpm run test\n```\n\n# CI\nCurrently this repo uses Github actions but you can run the tests locally using a Docker container:\n```\ndocker run --rm -it $(docker build -q .)\n```\n\n","readmeFilename":"README.md"}