21 Feb 2018

Talk Notes: What the heck is the event loop anyway?

With some handy visualisations, and fun hacks, let’s get an intuitive understanding of what happens when JavaScript runs.

Talk

What the Heck Is the Event Loop Anyway? by Philip Roberts @ JSConf.EU 26:53

Resources

Transcript

Summary

JavaScript programmers like to use words like, “event-loop”, “non-blocking”, “callback”, “asynchronous”, “single-threaded” and “concurrency”. We say things like “don’t block the event loop”, “make sure your code runs at 60 frames-per-second”, “well of course, it won’t work, that function is an asynchronous callback!” If you’re anything like me, you nod and agree, as if it’s all obvious, even though you don’t actually know what the words mean; and yet, finding good explanations of how JavaScript actually works isn’t all that easy, so let’s learn! With some handy visualisations, and fun hacks, let’s get an intuitive understanding of what happens when JavaScript runs.

My Notes

I actually have the pleasure of a passing acquaintence with Philip Roberts, though I didn’t realize it was him until I saw his avatar on one of his slides. lol. This was an incredibly useful talk and one I would highly recommend to anyone looking to learn more about how JavaScript actually works in the browser (which probably should be anyone who writes JS if I’m honest). I’ll be coming back to this one for a repeat watching.