Basic theory https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/
New kid https://twitter.com/samccone/status/912285795893080064
Libraries/example of code:
See also:
- http://jphpsf.github.io/setImmediate-shim-demo/
- https://gist.github.com/WebReflection/2953527
- https://stackoverflow.com/questions/7221504/does-node-js-enforce-a-minimum-delay-for-settimeout
- https://caolan.github.io/async/nextTick.js.html
- https://github.com/dfilatov/vow/blob/9328511db7bc7d56408ef61198df6ba1e0834038/lib/vow.js
- https://github.com/wesleytodd/browser-next-tick/blob/master/index.js
- (MutationObserver) https://stackoverflow.com/questions/19906947/is-there-anything-faster-than-settimeout-and-requestanimationframe