Question on XMLHttpRequest implementation
I was reviewing the request.js to see how the XHR request was done and I was puzzled to see the implementation.
Rather than use onreadystatechange I notice that you setTimeout to wait for 200 milliseconds and then check if readyState == 4. If its not 4 then you wait another 200 milliseconds.
Can you explain the reasoning behind this approach (or correct any misinterpretation I may have had).
Many thanks.
Rather than use onreadystatechange I notice that you setTimeout to wait for 200 milliseconds and then check if readyState == 4. If its not 4 then you wait another 200 milliseconds.
Can you explain the reasoning behind this approach (or correct any misinterpretation I may have had).
Many thanks.
Bryn
July 8,