Our request is pretty lightweight but that's not always going to be the case in your application. Moreover, progressing is especially important in mobile web applications, where the mobile device may move in and out of network coverage and suffer temporary network outages. A robust application will test progress status and errors and retry important requests.
The XMLHttpRequest
object provides events for it to notify you about the progress of a pending request. These events are as follows: