Chrome/Blink Devs Discuss setImmediate

Really interesting discussion of the pros and cons of the setImmediate function. For a little backstory checkout this post by Nicholas Zakas (@slicknet)

Here’s a nice tidbit from one of the Chrome devs:

To perform work immediately before the next display - for example to batch up graphical updates as data is streamed in off the network - just make a one-off `requestAnimationFrame()` call. To perform work immediately -after- a display, just call `setTimeout()` from inside the `requestAnimationFrame()` handler.

The full thread is available here.