-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Very slow bootstrapping of large templates in IE11 #8533
Comments
(To be clear, the example above is very large to ensure the behavior is demonstrated, but we've seen issues even with templates of just ~200-400KB). |
Using the "UI Responsiveness" tool in IE11 on the linked example, I found that occasionally individual invocations of the |
Apparently, this behavior was anomalous, the slowness is still there. The javascript link issue is fixed though. |
A very recent update seems to have fixed the issues I described, at least in initial testing. See: http://support.microsoft.com/kb/2991509 |
While still not as fast as Chrome/Safari/Firefox, the egregious load times exhibited before do seem to have dropped to a couple hundred milliseconds. |
Thanks for the update @spuy767 .It looks like the differences in bootstrap duration are now normal with regards to browser variation. Still, maybe there's a deeper problem here, so I'll keep this open for no. @IgorMinar has recently done some work related to performance, maybe he can take a look. |
I looked into this briefly. While IE11 is the fastest IE yet, it is still slow in certain areas compared to other browsers. The recent perf regression was cased by a IE updates and the fix is described in http://support.microsoft.com/kb/2991509 as @zachsnow pointed out. I don't think that there is much we can do about this. Users will have to install the update to patch the browser. btw I profiled @zachsnow's example and we spend about half of the time in compiling and the other half in linking/digesting. The good news is that after our recent perf improvements the linking is now ~2x faster. There is definitely a lot of room for improving the compile phase performance, but honestly in a typical app very small portion of the overall time is spent there. @zachsnow's example is an anomaly and any performance sensitive app should not generate such huge templates - instead of unrolling the templates on the server, do it on the client. |
Hi, currently I have a very subdole problem to solve with IE11 and AngularJS. Is this another IE11's bug??? Sorry for my English and thanks in advance for any suggestion. |
I am getting the same issue after adding bootstrap4. |
Issue
We recently started seeing very poor application loading performance in IE11. After some searching, we stumbled onto this Microsoft patch http://support.microsoft.com/kb/2962872 the timing of which coincides well with reports of slowness in our application. (Note in Issues there are known performance issues with the patch).
To reproduce: take a large-ish Angular template (say, 1MB) and attempt to bootstrap it (either automatically or manually). If you are running without KB2962872 installed, you'll see that while it might take a few seconds (significantly longer than Chrome/Firefox/Safari), it will load in a somewhat reasonable amount of time. However, if you install KB2962872 (which should be happening automatically) you'll find that it often takes significantly longer, sometimes as much as 50-100 times longer than Chrome/Firefox/Safari -- seemingly too long for what it's doing.
See this simple example -- I see times of ~1-2s in "modern" browsers other than IE, and anywhere from 10s-90s in IE 11 (and sometimes IE 10, but I wasn't as able to pin that down). The most frequent offender seems to be IE11 under Windows 7 and Windows 8.1, which almost always show really bad behavior in our testing. (We tried several VMs, via VirtualBox and Fusion, and a handful of physical machines).
Thoughts
Unfortunately, I don't know enough about AngularJS internals to make immediate headway, but I'm willing to try if someone has a sense of where to begin.
The text was updated successfully, but these errors were encountered: