{"_id":"async-asset","_rev":"267418","name":"async-asset","description":"async loading of stylesheet and javascript files","dist-tags":{"latest":"0.0.5"},"maintainers":[{"name":"3rdeden","email":""},{"name":"v1","email":""}],"time":{"modified":"2023-06-28T11:49:33.000Z","created":"2014-06-14T22:27:08.957Z","0.0.5":"2015-04-13T18:25:17.116Z","0.0.4":"2014-08-06T09:36:35.370Z","0.0.3":"2014-06-24T18:18:45.877Z","0.0.2":"2014-06-16T09:29:08.485Z","0.0.1":"2014-06-15T19:55:51.628Z","0.0.0":"2014-06-14T22:27:08.957Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"https://github.com/bigpipe/async-asset"},"versions":{"0.0.5":{"name":"async-asset","version":"0.0.5","description":"async loading of stylesheet and javascript files","main":"index.js","scripts":{"test":"illuminati --phantom"},"repository":{"type":"git","url":"https://github.com/bigpipe/async-asset"},"keywords":["async","asset","loading","require","css","stylesheet","javascript","loader","inject"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/async-asset/issues"},"homepage":"https://github.com/bigpipe/async-asset","devDependencies":{"illuminati":"0.0.x"},"dependencies":{"async-script":"0.0.x","floppy":"1.0.x"},"gitHead":"e732e98de546e23ce41e3f111107db8f707eb5d8","_id":"async-asset@0.0.5","_shasum":"612cecf9cc6e9dbfb1471816ead599a4d7c2ac68","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"v1","email":""}],"dist":{"shasum":"612cecf9cc6e9dbfb1471816ead599a4d7c2ac68","size":7078,"noattachment":false,"key":"/async-asset/-/async-asset-0.0.5.tgz","tarball":"http://name.csiicloud.com:7001/async-asset/download/async-asset-0.0.5.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:48.314Z","publish_time":1428949517116,"_cnpm_publish_time":1428949517116},"0.0.4":{"name":"async-asset","version":"0.0.4","description":"async loading of stylesheet and javascript files","main":"index.js","scripts":{"test":"illuminati --phantom"},"repository":{"type":"git","url":"https://github.com/bigpipe/async-asset"},"keywords":["async","asset","loading","require","css","stylesheet","javascript","loader","inject"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/async-asset/issues"},"homepage":"https://github.com/bigpipe/async-asset","devDependencies":{"illuminati":"0.0.x"},"_id":"async-asset@0.0.4","_shasum":"a567062c475db7241652205a4957e78b6af0da4b","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"v1","email":""}],"dist":{"shasum":"a567062c475db7241652205a4957e78b6af0da4b","size":7316,"noattachment":false,"key":"/async-asset/-/async-asset-0.0.4.tgz","tarball":"http://name.csiicloud.com:7001/async-asset/download/async-asset-0.0.4.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:47.412Z","publish_time":1407317795370,"_cnpm_publish_time":1407317795370},"0.0.3":{"name":"async-asset","version":"0.0.3","description":"async loading of stylesheet and javascript files","main":"index.js","scripts":{"test":"zuul --phantom -- test/*.test.js","mocha":"mocha test/file.test.js"},"repository":{"type":"git","url":"https://github.com/bigpipe/async-asset"},"keywords":["async","asset","loading","require","css","stylesheet","javascript","loader","inject"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/async-asset/issues"},"homepage":"https://github.com/bigpipe/async-asset","devDependencies":{"assume":"0.0.x","mocha":"1.20.x","phantomjs":"1.9.x","pre-commit":"0.0.x","zuul":"1.7.x"},"_id":"async-asset@0.0.3","_shasum":"55d675c8d59534c085171bc88f9a38a6f703edc6","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"v1","email":""}],"dist":{"shasum":"55d675c8d59534c085171bc88f9a38a6f703edc6","size":6517,"noattachment":false,"key":"/async-asset/-/async-asset-0.0.3.tgz","tarball":"http://name.csiicloud.com:7001/async-asset/download/async-asset-0.0.3.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:46.552Z","publish_time":1403633925877,"_cnpm_publish_time":1403633925877},"0.0.2":{"name":"async-asset","version":"0.0.2","description":"async loading of stylesheet and javascript files","main":"index.js","scripts":{"test":"zuul --phantom -- test/*.test.js","mocha":"mocha test/file.test.js"},"repository":{"type":"git","url":"https://github.com/bigpipe/async-asset"},"keywords":["async","asset","loading","require","css","stylesheet","javascript","loader","inject"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/async-asset/issues"},"homepage":"https://github.com/bigpipe/async-asset","devDependencies":{"assume":"0.0.x","mocha":"1.20.x","phantomjs":"1.9.x","pre-commit":"0.0.x","zuul":"1.7.x"},"_id":"async-asset@0.0.2","_shasum":"f7b24260d9a55b28498d610d71543393d5fadb29","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"v1","email":""}],"dist":{"shasum":"f7b24260d9a55b28498d610d71543393d5fadb29","size":6320,"noattachment":false,"key":"/async-asset/-/async-asset-0.0.2.tgz","tarball":"http://name.csiicloud.com:7001/async-asset/download/async-asset-0.0.2.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:45.658Z","publish_time":1402910948485,"_cnpm_publish_time":1402910948485},"0.0.1":{"name":"async-asset","version":"0.0.1","description":"async loading of stylesheet and javascript files","main":"index.js","scripts":{"test":"zuul --phantom -- test/*.test.js","mocha":"mocha test/file.test.js"},"repository":{"type":"git","url":"https://github.com/bigpipe/async-asset"},"keywords":["async","asset","loading","require","css","stylesheet","javascript","loader","inject"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/async-asset/issues"},"homepage":"https://github.com/bigpipe/async-asset","devDependencies":{"assume":"0.0.x","mocha":"1.20.x","phantomjs":"1.9.x","pre-commit":"0.0.x","zuul":"1.7.x"},"_id":"async-asset@0.0.1","_shasum":"61194aedecf25f9414cdef36dc282e83fe6a5487","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"v1","email":""}],"dist":{"shasum":"61194aedecf25f9414cdef36dc282e83fe6a5487","size":6322,"noattachment":false,"key":"/async-asset/-/async-asset-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/async-asset/download/async-asset-0.0.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:44.792Z","publish_time":1402862151628,"_cnpm_publish_time":1402862151628},"0.0.0":{"name":"async-asset","version":"0.0.0","description":"async loading of stylesheet and javascript files","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/bigpipe/async-asset"},"keywords":["async","asset","loading","require","css","stylesheet","javascript","loader","inject"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/async-asset/issues"},"homepage":"https://github.com/bigpipe/async-asset","_id":"async-asset@0.0.0","_shasum":"ed35922698ffaebe5a31141579f9691d1c1efc8e","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"v1","email":""}],"dist":{"shasum":"ed35922698ffaebe5a31141579f9691d1c1efc8e","size":3970,"noattachment":false,"key":"/async-asset/-/async-asset-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/async-asset/download/async-asset-0.0.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:43.922Z","publish_time":1402784828957,"_cnpm_publish_time":1402784828957}},"readme":"# async-asset\n\nAsynchronously load front-end assets. And with async, we mean truly async.\nLoading scripts async isn't that hard but loading a CSS file fully async in\na cross browser manner can be utterly painful. Especially when you try to do\nthis in the front-end's worst enemy, Internet Explorer. It has limitations on\nthe amount of style sheets that can be loaded on a single page. So we need to\nmake sure that we do not reach these limitations by using clever tricks. (Which\nwe are doing of course).\n\n## Installation\n\nThis module exposes a Node.js (`module.exports`) interface for loading the module\nso you should be using `browserify` to compile the assets in to a single file.\nThe code it self is released through `npm` as you might have expected and can be\ninstalled by running:\n\n```\nnpm install --save async-asset\n```\n\n## Usage\n\nRequire the module:\n\n```js\n'use strict';\n\nvar AsyncAsset = require('async-asset');\n```\n\nAnd construct a new instance.\n\n```js\nvar assets = new AsyncAsset(root, { options });\n```\n\nIn the function signature above you can see that it receives 2 arguments:\n\n1. The `root` element where we append all script/link instances to.\n2. The `options` object which allows you further configure the object. The\n   following options are accepted:\n   - `document` Document instance where we call the `createElement` on.\n   - `timeout` Amount of milliseconds we allow the resource to load until call\n     all callbacks with an timeout error.\n   - `onload` Indication if style sheets call the `onload` method.\n   - `prefix` Prefix for id selectors we used to pull for style sheet changes.\n\n### AsyncAsset.remove\n\n```js\nassets.remove(url, fn);\n```\n\n### AsyncAsset.add\n\n```js\nassets.add(url, fn);\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/bigpipe/async-asset","bugs":{"url":"https://github.com/bigpipe/async-asset/issues"},"license":"MIT"}