holidayextras / barometer

Framework agnostic browser performance metrics
MIT License
5 stars 5 forks source link

Fix async xhr issues in safari #41

Closed rahulpatel closed 7 years ago

rahulpatel commented 7 years ago

From what I understand, the loadend event for an async xhr request will fire once progress has stopped, not when the request is fully ready. So trying to access the response text at this point causes safari to throw an error. It doesn't cause any issues on the page, just pollutes the console with error messages.

rahulpatel commented 7 years ago

I believe IE10 will also throw an error for similar reasons.