IE11 - XMLHttpRequest level 2 onprogress event does not fire if chunk data is greater than 4kiB
I am using XMLHTTPRequest level 2 to keep a sticky connection to the server.
In IE10, Chrome, and Firefox, each data packet received fires an onprogress event as expected. However, in IE11, if a chunk has more than 4kiB, the event is not fired for that chunk. It will only fire after I receive something else.
I have applied a workaround that sends dummy data after 0.5 seconds if the previous chunk was greater than 4k, so onprogress is fired on dummy data and I can get the data I want.
I would like to know: the actual behavior of IE11 with respect to onprogress, to see if there is a better fix for this problem or if the workaround is actually the correct fix.
Any help?
+3
source to share