项目作者: callmecavs

项目描述 :
Frame, tick, and idle functions for the browser.
高级语言: JavaScript
项目地址: git://github.com/callmecavs/next-thing.git
创建时间: 2017-03-16T04:03:38Z
项目社区:https://github.com/callmecavs/next-thing

开源协议:

下载


next-thing

next-thing on NPM Standard JavaScript Style

Frame, tick, and idle functions for the browser.

Install

  1. $ npm i next-thing --save

Use

  1. import * as next from 'next-thing'
  2. // runs in the next frame
  3. next.frame(() => console.log('Next frame.'))
  4. // runs in the next tick
  5. next.tick(() => console.log('Next tick.'))
  6. // runs when the browser is idle
  7. next.idle(() => console.log('Next idle.'))

License

MIT. © 2017 Michael Cavalea