This is the second chapter of the Writing a JavaScript framework series. In this chapter, I am going to explain the different ways of executing asynchronous code in the browser. You will read about the event loop and the differences between timing techniques, like setTimeout and Promises. The series is about an open-source client-side framework, called NX. During the series, I explain the main dif
![Writing a JavaScript framework - Execution timing, beyond setTimeout - RisingStack Engineering](https://cdn-ak-scissors.b.st-hatena.com/image/square/43f8e52f288af06d924e28f83882d6249b630d61/height=288;version=1;width=512/https%3A%2F%2Fblog.risingstack.com%2Fwp-content%2Fuploads%2F2021%2F07%2Fwriting_a_javascript_framework_execution_timing_beyond_settimeout.png)