This bugs me. I just watched Philip Roberts's video about the event loop and got an understanding of how the API calls will eventually put callbacks in the callback queue. But he only mentioned the XMLHtppRequest and the time out functions. What about DOM API (document.getElementById, document.appendChild)? Does they make the same effect?
DOM manipulation is synchronous, however, the browser's re-rendering of the page in response to a DOM update is asynchronous. This can give the illusion of an asynchronous DOM update.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With