holidayextras / barometer

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

IE11 - Reorder XHR timeout and enforce async to avoid InvalidStateError #31

Closed theninj4 closed 7 years ago

theninj4 commented 7 years ago

I'm seeing strange behaviour in our staging environment in IE11, whereby when we go to flush the transport buffer we get an InvalidStateError - the internet suggests it's sometime to do with the ordering of the commands (https://github.com/stephanebachelier/superapi/issues/5) and looking at how superagent is implemented, they avoid synchronous requests entirely, so I'm following in their footsteps.

djbeaumont commented 7 years ago

Looks fabulous 👍