Meaning Of Asynchronous Javascript
Note that asynchronous does not mean the same thing as concurrent or multi threaded.
Meaning of asynchronous javascript. Synchronous javascript as the name implies means in a sequence or an order. Asynchronous javascript is a fairly advanced topic and you are advised to work through javascript first steps and javascript building blocks modules before attempting this. The most common javascript form is synchronous javascript which is read by your browser as its name suggests.
This form of javascript is much preferred by the web design community as it allows for faster load times and prevents pages from being hung while waiting for a single action to complete. Javascript can have asynchronous code but it is generally single threaded. Asynchronous code allows the program to be executed immediately where the synchronous code will block further execution of the remaining code until it finishes the current one.
Using async javascript you can perform large functions without blocking the main thread of javascript. To better understand this let s look at what we mean by synchronous and asynchronous javascript. If you are not familiar with the concept of asynchronous programming you should definitely start with the general asynchronous programming concepts article in this module.