Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
• browsers are event-driven<br />
JS timing model<br />
• alMost every action performed on a browser results in an event being generated and appended to the event queue<br />
• Event loop is a function that takes events from the queue and process them when time permits only one running script at a time<br />
• Most events are processed asynchronously<br />
• Some special events (mutation) and events fired with dispatchEvent are synchronous<br />
Execution queue<br />
myFunction<br />
fn<br />
fn<br />
x<br />
x<br />
Event handler 1<br />
x<br />
Event handler 2 Event handler 1<br />
x<br />
x<br />
Event queue