Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Idle Until Urgent. Parent comment
Though setImmediate is specific to IE/Edge.
setTimeout(resolve, 0)
requireAnimationFrame(resolve)
There are no comments on this comment yet.
Though setImmediate is specific to IE/Edge.
will allow any queued events/macrotasks to occur, and then immediately resolve. will wait until the browser is ready to render another frame, and then resolve.