When I told my colleague Matt Gaunt I was thinking of writing a piece on microtask queueing and execution within the browser's event loop, he said "I'll be honest with you Jake, I'm not going to read that". Well, I've written it anyway, so we're all going to sit here and enjoy it, ok?
In what order should the logs appear?
Clear log Run test
The correct answer:
setTimeout, but it's pretty wild out there in terms of browser support.
Microsoft Edge, Firefox 40, iOS Safari and desktop Safari 8.0.8 log
... read the whole story at jakearchibald.com.