How Web/Browser APIs Work With V8 Engine

Diagram

  • when Call Stack executes async code, it is passed to the browser to handle it
  • once the browser is finished with it, a callback function is placed into the Callback Queue (if one exists)
  • when Call Stack is empty, the Event Loop pops the first callback function in Callback Queue and places it into the Call Stack (the next callback function is popped when the Call Stack is empty)
  • in reality, the Render Queue exists. It has higher priority than Callback Queue. So event Loop actually pops the Render Queue once every 0.016̅6 seconds, then from the Callback Queue

Todo

http://latentflip.com

Closures - Scope - Scope Chain

Checking Browser Support

JavaScript - Native

JavaScript - Web/Browser APIs