What is the meaning of the “false” there? How does it help us send the request or even to the programmer to understand the already simple essense of this code line?
Assuming ajax is an XMLHttpRequest, the third argument is, as the documentation states, a boolean flag as to whether the request should be made asynchronously or not. This defaults to true.
Generally speaking, Things calling AJAX requests are wrapped around an XMLHttpRequest (this is nowadays obfuscated down the fetch tree). But not all XMLHttpRequests are Asynchronous. As technology has evolved, speeds have increased, computers have become more powerful, the threading of browsers allows them to do more concurrently, we’ve moved towards asynchronous ways of coding.
Agreed. For example, order processing should NEVER be an asynchronous process as you don’t want to complete the order until you’re sure you’ve been paid.