{"_id":"ric","_rev":"309343","name":"ric","description":"requestIdleCallback polyfill","dist-tags":{"latest":"1.3.0"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"time":{"modified":"2021-06-03T19:43:11.000Z","created":"2015-09-11T12:43:14.457Z","1.3.0":"2016-02-23T16:49:03.233Z","1.2.0":"2016-01-05T21:56:50.422Z","1.1.9":"2016-01-05T21:48:55.230Z","1.1.8":"2015-10-22T21:17:13.598Z","0.1.8":"2015-10-21T19:36:40.645Z","0.1.7":"2015-10-21T14:25:47.351Z","0.1.6":"2015-10-16T08:50:32.502Z","0.1.5":"2015-09-18T07:38:36.990Z","0.1.4":"2015-09-17T09:53:57.399Z","0.1.3":"2015-09-14T09:20:04.228Z","0.1.2":"2015-09-11T15:40:36.385Z","0.1.1":"2015-09-11T15:21:50.781Z","0.1.0":"2015-09-11T12:43:14.457Z"},"users":{},"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"versions":{"1.3.0":{"name":"ric","version":"1.3.0","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"3168de05130963a03d0128b2469c9320105b4ebf","_id":"ric@1.3.0","_shasum":"8e95042609ce8213548a83164d08e94fae94909f","_from":".","_npmVersion":"3.4.1","_nodeVersion":"4.2.2","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"8e95042609ce8213548a83164d08e94fae94909f","size":7234,"noattachment":false,"key":"/ric/-/ric-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-1.3.0.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/ric-1.3.0.tgz_1456246137689_0.3890824601985514"},"publish_time":1456246143233,"_cnpm_publish_time":1456246143233,"_hasShrinkwrap":false},"1.2.0":{"name":"ric","version":"1.2.0","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"8d11eca10179c623468ce065791e50b9d34945c6","_id":"ric@1.2.0","_shasum":"45047e9187bf1ec0bf68ec90f840cae01878f6c5","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"45047e9187bf1ec0bf68ec90f840cae01878f6c5","size":7348,"noattachment":false,"key":"/ric/-/ric-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-1.2.0.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1452031010422,"_cnpm_publish_time":1452031010422,"_hasShrinkwrap":false},"1.1.9":{"name":"ric","version":"1.1.9","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"d56344ddc0c54d54453bcf2d053de22991980e3b","_id":"ric@1.1.9","_shasum":"c567343c029e0c18143b80f2af4de028247b3c7a","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"c567343c029e0c18143b80f2af4de028247b3c7a","size":7307,"noattachment":false,"key":"/ric/-/ric-1.1.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-1.1.9.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1452030535230,"_cnpm_publish_time":1452030535230,"_hasShrinkwrap":false},"1.1.8":{"name":"ric","version":"1.1.8","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"4a2266d5d31ab25557dcb521567fac620d83ce24","_id":"ric@1.1.8","_shasum":"302dd4670a418ff263721158d6e827c107dfbd8e","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"302dd4670a418ff263721158d6e827c107dfbd8e","size":7156,"noattachment":false,"key":"/ric/-/ric-1.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-1.1.8.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1445548633598,"_cnpm_publish_time":1445548633598,"_hasShrinkwrap":false},"0.1.8":{"name":"ric","version":"0.1.8","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"0902a7829e01af741a8bd4d9895fd7cfeddad7c0","_id":"ric@0.1.8","_shasum":"58c0dedb15a1a2bdd7c325b3a279a68612bc93df","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"58c0dedb15a1a2bdd7c325b3a279a68612bc93df","size":7572,"noattachment":false,"key":"/ric/-/ric-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.8.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1445456200645,"_cnpm_publish_time":1445456200645,"_hasShrinkwrap":false},"0.1.7":{"name":"ric","version":"0.1.7","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"b10a9748ab66f237308ec675492edb7907bf60fd","_id":"ric@0.1.7","_shasum":"d813fa03c0cd6afd49a71d6d4abff07d30e3623f","_from":".","_npmVersion":"3.3.8","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"d813fa03c0cd6afd49a71d6d4abff07d30e3623f","size":5668,"noattachment":false,"key":"/ric/-/ric-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.7.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1445437547351,"_cnpm_publish_time":1445437547351,"_hasShrinkwrap":false},"0.1.6":{"name":"ric","version":"0.1.6","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"3acd09759a267155b05898092ec30b9b13a17fc8","_id":"ric@0.1.6","_shasum":"d1b9113cf6ff3baebbd4922713abe028df7a4169","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"d1b9113cf6ff3baebbd4922713abe028df7a4169","size":5557,"noattachment":false,"key":"/ric/-/ric-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.6.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1444985432502,"_cnpm_publish_time":1444985432502,"_hasShrinkwrap":false},"0.1.5":{"name":"ric","version":"0.1.5","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"3acd09759a267155b05898092ec30b9b13a17fc8","_id":"ric@0.1.5","_shasum":"77e5fcb1baec91335c515007b9550eafb3d6b980","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"77e5fcb1baec91335c515007b9550eafb3d6b980","size":5480,"noattachment":false,"key":"/ric/-/ric-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.5.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1442561916990,"_cnpm_publish_time":1442561916990,"_hasShrinkwrap":false},"0.1.4":{"name":"ric","version":"0.1.4","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"e72bfb4b38570c2678e6a561f7effde0f33160ba","_id":"ric@0.1.4","_shasum":"eab09c296729a4fc923954b30c3e668f534828b8","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"eab09c296729a4fc923954b30c3e668f534828b8","size":5433,"noattachment":false,"key":"/ric/-/ric-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.4.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1442483637399,"_cnpm_publish_time":1442483637399,"_hasShrinkwrap":false},"0.1.3":{"name":"ric","version":"0.1.3","description":"requestIdleCallback polyfill","main":"./src/ric-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"7e005cf4a1e278d05988052af571881b5d91c9fb","_id":"ric@0.1.3","_shasum":"7812065ce0c41c55787381439f5b8105b3da452d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"7812065ce0c41c55787381439f5b8105b3da452d","size":5033,"noattachment":false,"key":"/ric/-/ric-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.3.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1442222404228,"_cnpm_publish_time":1442222404228,"_hasShrinkwrap":false},"0.1.2":{"name":"ric","version":"0.1.2","description":"requestIdleCallback polyfill","main":"index.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"3e519f3bea4efc66d524f4a30fdc41f9805bd483","_id":"ric@0.1.2","_shasum":"124ae2f0d94a13910bdc3419288ede86a0f7113f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"124ae2f0d94a13910bdc3419288ede86a0f7113f","size":4853,"noattachment":false,"key":"/ric/-/ric-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.2.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1441986036385,"_cnpm_publish_time":1441986036385,"_hasShrinkwrap":false},"0.1.1":{"name":"ric","version":"0.1.1","description":"requestIdleCallback polyfill","main":"index.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"e764386ddb7f533a1016a715b24daaf1c0947561","_id":"ric@0.1.1","_shasum":"b59900dc17429686cd652adeef33bd88ce958bb9","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"b59900dc17429686cd652adeef33bd88ce958bb9","size":4766,"noattachment":false,"key":"/ric/-/ric-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.1.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1441984910781,"_cnpm_publish_time":1441984910781,"_hasShrinkwrap":false},"0.1.0":{"name":"ric","version":"0.1.0","description":"requestIdleCallback polyfill","main":"index.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PixelsCommander/requestIdleCallback-polyfill.git"},"keywords":["requestIdleCallback","polyfill"],"author":{"name":"PixelsCommander","email":"denis.radin@gmail.com","url":"http://pixelscommander.com"},"license":"ISC","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","gitHead":"e764386ddb7f533a1016a715b24daaf1c0947561","_id":"ric@0.1.0","_shasum":"ab11dc686fac934100103b182f70fa99b65fb068","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"pixelscommander","email":"denis.radin@gmail.com"},"dist":{"shasum":"ab11dc686fac934100103b182f70fa99b65fb068","size":4607,"noattachment":false,"key":"/ric/-/ric-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ric/download/ric-0.1.0.tgz"},"maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"}],"publish_time":1441975394457,"_cnpm_publish_time":1441975394457,"_hasShrinkwrap":false}},"readme":"requestIdleCallback polyfill\n============================\n\nrequestIdleCallback is a new browser API which allows to execute code when browser is idle.\nThis is crucial for creating smooth animations and user experiences allowing to avoid janks which basically happens when CPU become too overloaded to fit into frame budget which is 16 msec.\n\nArticle about RIC https://developers.google.com/web/updates/2015/08/27/using-requestidlecallback?hl=en by Paul Lewis\n\nHow polyfill works\n------------------\n\nPolyfill is built on principe that janks are most harmful to UX and have highest chance to happen when user is continously interacting with UI. Polyfill basically prevents operation from being executed while user performing some actions on interface. Currently this implies scrolls, taps, clicks, mouse and touch movements. The condition is pretty simple - if there were no interactions for 100 msec there is a huge chance that we are in idle.\n\n\nDiffernce between requestUserIdle and requestIdleCallback\n---------------------------------------------------------\n\nThe difference is that requestUserIdle is always relying on polyfill logic even if requestIdleCallback is implemented natively in browser. This is handy if you just need to wait for UI idle since native requestIdleCallback have different behaviour and fires when main thread becomes idle, not UI.\n\nNPM\n---\n\nAvailable via `npm install ric`\n\nTO DO\n-----\n\n- Consider touchend, touchcancel, mouseup, touchleave for faster idle recognition\n- Consider CSS transitions as blockers via listening to transitionstart, transitionend","_attachments":{},"homepage":"https://github.com/PixelsCommander/requestIdleCallback-polyfill#readme","bugs":{"url":"https://github.com/PixelsCommander/requestIdleCallback-polyfill/issues"},"license":"ISC"}