material icon indicating copy to clipboard operation
material copied to clipboard

IE11 Performance in 1.0.6

Open char0n opened this issue 10 years ago • 31 comments

There has been significant performance degradation in release 1.0.6 for IE 11. In 1.0.5 and IE 11 performance was not very good but it was still acceptable; but, running on 1.0.6 makes project in angular-material unusable. UI freezes and becomes irresponsible. Can you imagine some reason why there is such a dramatic performance decrease in patch version ?

Is there somebody else that have experienced something similar ?

char0n avatar Mar 02 '16 16:03 char0n

I have the same issue! When I update to 1.0.6 every user interaction (switching tabs, selecting side nav list item, scrolling in virtual repeat,…) in my app feels significantly slower in IE11 than before update. I can constantly reproduce this. When I go back to 1.0.5, the performance in IE is slow compared to Chrome/FF, but acceptable. As soon as I update to 1.0.6 the performance is, in my opinion, not acceptable anymore. So there must have been some changes in 1.0.6 that have very negative effect on IE11 performance. This is very critical to me. Since many of our customers stick with IE11, I am not able to upgrade to 1.0.6.

jpschill avatar Mar 02 '16 20:03 jpschill

Thanks for confirming.

Related: There is an issue with Firefox, which I have addressed here: https://github.com/angular/material/commit/99c9b60e4521b388ee979d796cec247cffe44499#commitcomment-16449602

It doesn't concern performance but applications in holy grail layout will stop working correctly. Checkout the link above for solving the problem in Firefox for 1.0.6 version.

char0n avatar Mar 02 '16 20:03 char0n

Experiencing same performance issues in IE 11 and edge

srweeks avatar Mar 02 '16 20:03 srweeks

I can confirm, that there are massive performance issues in IE11 with 1.0.6. I have about 30% CPU while doing nothing. Edge and Chrome work fine. Same issues with 1.0.5. 1.0.0 seems to be a bit better. But is still very slow.

mbeckenbach avatar Mar 05 '16 14:03 mbeckenbach

We are also seeing huge performance issues in IE11 with AM 1.0.6 which make our site unusable. 1.0.5 is much more usable in comparison, please look into these issues

kieranmcdev avatar Mar 07 '16 09:03 kieranmcdev

I did some refactoring of my ng-repeats. now 1.0.5 runs is quite fast. But as soon as i update to 1.0.6 everything becomes slow

mbeckenbach avatar Mar 07 '16 12:03 mbeckenbach

I can confirm that it runs very slow, just open the material demo page in IE11 and see it yourself. I've deployed to windows 10 mobile and the performance is lackluster.

vajnorcan avatar Mar 08 '16 02:03 vajnorcan

I found out something interesting:

When we disable the css theming by setting the constant

module.constant('$MD_THEME_CSS', '');

the performance of ie gets better.

I am not sure what the reason is. Maybe it is the number of selectors. We don't know what the big O of ie is :-)

It would be interesting to hear if you also see this in your web apps.

david-gang avatar Mar 08 '16 11:03 david-gang

IE11 with AM 1.0.6 is pretty unusable. AM 1.0.5 was quicker by far. It seems that IE refresh isn't hitting -> does it have trouble loading the AM JavaScript or maybe just processing it? How does IE handle the cache of JS code in memory? We've downgraded to 1.0.5 in any event. A fix for this would be great, thanks!

YoungtreeDev avatar Mar 08 '16 12:03 YoungtreeDev

@david-gang well, that helps but I've lost all the css and styling ;) @YoungtreeDev even with 1.0.5 I wouldn't call AM a quick UI on IE Edge (!) on WM10

vajnorcan avatar Mar 08 '16 12:03 vajnorcan

@david-gang With AM1.0.5 I can confirm that disable css theming has a big impact on IE11 performance. The UI feels faster/smoother. So optimizing AM´s styles for IE would be very helpful to improve IE performance in general, I think. But with AM1.0.6 even disable css theming does not help. It feels extreme slow, with or without styles enabled.

jpschill avatar Mar 08 '16 17:03 jpschill

Is anyone else seeing improvements with 1.1.0 rc1 ?

PeterStAngelo avatar Mar 10 '16 13:03 PeterStAngelo

Yes it is working now like before 1.0.5

lpillonel avatar Mar 10 '16 15:03 lpillonel

I can also confirm that the performance and flex issues (https://github.com/angular/material/issues/7382) in IE11 are gone. The performance is on acceptable level now, even though there are other problems regarding some components (card),

Note: in 1.1.0-rc1, IE11 performance issue is fixed. But this release created huge issues in Firefox, which I will try to document in other issue.

char0n avatar Mar 11 '16 12:03 char0n

FYI - The Angular Material team is currently investigating this!

ThomasBurleson avatar Mar 14 '16 19:03 ThomasBurleson

I just posted this #7832 could be related.

hamsaya avatar Apr 01 '16 14:04 hamsaya

I am also having incredibly bad performance with IE 11+ it seems to be with all the "styleCalculation" anything from click event adding ripple.

This is when you really appreciate Chrome :+1:

ganySA avatar Apr 06 '16 18:04 ganySA

Hi all,

I wanted to share with you the approach I thought, how to find the slowness in my material application. My assumption is that there are several css rules which are hard for internet explorer to digest and therefore the style calculations take lots of time. My plan is to take an use case of my application and code a protractor function. Then I will take the material css. I will start from an empty css file and every time i will add one rule and run my protractor function. The running time is measured in every iteration. I hope that i will find the top 10 rules which are responsible for the greatest diff in running time.

What do you think about this approach? Ping - @topherfangio

Thanks, David

david-gang avatar May 01 '16 06:05 david-gang

Would love to see the results !

On Sun, May 1, 2016 at 8:17 AM, David Gang [email protected] wrote:

Hi all,

I wanted to share with you the approach I thought, how to find the slowness in my material application. My assumption is that there are several css rules which are hard for internet explorer to digest and therefore the style calculations take lots of time. My plan is to take an use case of my application and code a protractor function. Then I will take the material css. I will start from an empty css file and every time i will add every time one rule and run my protractor function. The running time is measured in every iteration. I hope that i will find the top 10 rules which are responsible for the greatest diff in running time.

What do you think about this approach? Ping - @topherfangio https://github.com/topherfangio

Thanks, David

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/7377#issuecomment-216019030

rawoke083 avatar May 01 '16 06:05 rawoke083

@david-gang - Sounds great. And thank you for your research efforts.

Please use the latest code from master for your testing.

Testing Considerations

with Layout injection disabled you may want to manually include angular-material.layout-attributes.css [not for IE!]

ThomasBurleson avatar May 01 '16 13:05 ThomasBurleson