at a basic level, Event loop is a cycle which checks if we have any pending tasks:
<script>
-tag;setTimeout
, setInterval
, requestIdleCallback
;click
, mousedown
, input
, blur
etc). They could be:
fetch
promise resolve);👉 JS and rendering are executed into a same thread, one by one