The Event Loop Module #31 Flashcards
1
Q
What is the main takeaway about the Event Loop?
A
The main takeaway is that the order of your instructions is not executed from top to bottom. Functions you invoke might be executed later than you might expect. And it’s important to know in which case, and why.
2
Q
How can you accidentally block the event loop?
A
Any JavaScript code that takes too long to return back control to the event loop will block the execution of any JavaScript code in the page, even block the UI thread, and the user cannot click around, scroll the page, and so on.