Yaffle/EventSource

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

Open

#104 opened on 2018年2月8日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (1,873 stars) (320 forks)batch import
help wanted

説明

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?

コントリビューターガイド