Asynchronous JavaScript – Overview

Reference:¬†http://www.ruanyifeng.com/blog/2012/12/asynchronous%EF%BC%BFjavascript.html As is known to all, the environment of JavaScript runtime is ‘single thread’, which means the JS engine can only handle one task at one time. If there exists several tasks, the tasks should wait¬†in a queue. Only the former task has finished, the latter one can be executed. The tasks are executed one …

Read More