Closed Hiro-Nakamura closed 4 years ago
…echange()
on a timeout, the onreadystatechange() will be processed before the .ontimeout() handler. So we need to prevent the onreadystatechange() from responding to a timeout error (where response.state == 0).
Awesome, thanks for this!
…echange()
on a timeout, the onreadystatechange() will be processed before the .ontimeout() handler. So we need to prevent the onreadystatechange() from responding to a timeout error (where response.state == 0).