var request = new XMLHttpRequest(); request.open('GET', '/', true); request.send(); request.onreadystatechange = function() { ... } 
  • possible, why? In (single-threaded) javascript, the answer to the asynchronous ajax request will not be processed until the idle state occurs. - Igor
  • Well, in theory, the earlier the request is sent, the sooner the response will be received. - user208916
  • @Khipster thinks right. There is only one question here, what do you want to do?) - Vasily Barbashev
  • Yes, this is the usual AJAX request, nothing special. - user208916

0