Do you know that? 38% like freelancing because no cubicles next

How do you know that an AJAX request has completed?

readyState allows determining the request status. If the value is 4, it means that the request has been completed and response is then sent to the browser.

By determining the readyState property value of XMLHttpReqyest, One can know if the request is completed. If the readyState value = 4, the request has been completed and the data is available.