Here , this is absolute gold for any javascript developer , there is honestly no better video on the planet than this explaining the functionality of the browser vendors javascript engines event loop :
( requestAnimationFrame is discussed in the video )