Watching 'What the heck is the event loop, anyways?'
21 Apr 2020
I watched "What the heck is the event loop, anyways?" by Philip Roberts. I really appreciated the way the material was presented and it really helped the event loop concepts click for me.
Here are some notes I took while watching:
Blocking basically just means "things that are slow"
Stuff goes on the call stack when it's called, and pops off the stack when it returns
When the Web APIs are done doing whatever (a network call, a timer), they push the callback onto the task queue.
Event loop looks at the task queue & looks at the stack. If there's a task in the task queue & stack is clear, the task gets added to the stack and then the JS runtime will run it.
A question I had while watching was whether "ajax" just another word for XHR? Or something different? My coworker Johnicholas responded that "'Ajax' was a successful marketing rename" and that is a good enough answer for me.
Webmentions: None yet!
These are webmentions via the IndieWeb and webmention.io.