In newer versions of IE, both onreadystatechange and onload callback gets fired (I assume onreadystatechange is there for backward compatibility). When onreadystatechange gets fired, we should check the state of the event, and only resolve the returned promise if readyState is 'complete'.
In newer versions of IE, both
onreadystatechange
andonload
callback gets fired (I assumeonreadystatechange
is there for backward compatibility). Whenonreadystatechange
gets fired, we should check the state of the event, and only resolve the returned promise ifreadyState
is'complete'
.