- start with riddle [-5->0]
- what is event loop briefly [0->13]
- list of building blocks [13->15]
- question: importantly, what happens when they all get thrown together? how to grok? [15->16]
- explain each building block; slowly build up picture of callstack in riddle [16->40]
- summary of mental model; end with walking through solution of the riddle stack by stack [40->45]
- author [45->46]
- loupe tool [46->47]
- Q&A; send off another riddle to ask for answers [47->50]
- zen mode (Ctrl + K, Z)
- remove git lens (disable extension)
- watch out for keyboard shortcuts when doing live-demo!
- call stack is properly ordered (add highest priority at top of file)
- add new sections over the presentation
- how does promise / catch work?
- remains in the microtask queue execution, though further execution is aborted.
- what is the history of task queues?
- Apparently microtask queues have been around since 2015, but yeah, why that change was introduced is a bit hazy as devs were manipulating the setTimeout/setIntermediate APIs to accomplish the same effect.
# Highest Priority
---------------
# NextTick Queue
(nodejs/not in browser)
(nextTick)
---------------
# MacroTask Queue
(execution, event callback)
- pop callstack for callback