jsuwp-2-18 What about asynchronous callback?
2-18 What about asynchronous callback?
bigword alert : asynchronous
- more than one at a time
- asking other elements -> asynchronous
- inside js -> synchronous
Example : Event Queue
- js engine looks at the queue periodically only when stack is empty
- browser puts the event asynchronously
- js run the event handler line by line
1 |
|