EventSource icon indicating copy to clipboard operation
EventSource copied to clipboard

EventSource causes IE11 to lock-up, freeze and act erratically with high-frequency EventSource in Angular 4

Open daiplusplus opened this issue 7 years ago • 2 comments

I'm using this EventSource polyfill in an Angular 4 application that calls an EventSource that returns new messages every 500ms. When using IE11 on Windows Server 2016, the IE window (and dev tools!) instantly lock-up and become unresponsive for a few seconds, before resuming but lagging the entire system, including Windows Task Manager. Curiously, Windows Task Manager reports no unusual CPU usage, or significantly increased memory usage.

I ran it with the IE F12 Developer Tools Profiler, which shows a lot of time is spent in Angular's zone handler and change-detection code - so something very inefficient is going on in there. I speculate this polyfill is conflicting with Angular's Zone.js patching of XMLHttpRequest.

Has anyone else observed similar behaviour?

daiplusplus avatar Feb 08 '18 03:02 daiplusplus

Same issue here. See https://seit1908.at/ticker/ticker.php?id=279&home=LASK&away=SV+Mattersburg

varioous avatar Feb 08 '20 12:02 varioous

@varioous , it seems, your eventsource stream has a lot of whitespaces, such big respnose (like 1MB) are very slow in IE

Yaffle avatar Feb 09 '20 09:02 Yaffle