material icon indicating copy to clipboard operation
material copied to clipboard

Massive performance issue using with IE 11

Open hamsaya opened this issue 10 years ago • 16 comments

The issue is how the angular-material.css file renders the elements on the page. Here is a demo of what I am talking about:

Chrome and firefox work fine.. IE is the issue..

I have updated to the latest of angular material still no luck ...

http://codepen.io/hamsaya/pen/KzXzEG

This is has a massive impact on the usage of angular material.

hamsaya avatar Apr 01 '16 05:04 hamsaya

I can't reproduce it. Can you try removing the md-tooltip to see if the performance improves? There are two watchers per md-tooltip which could negatively affect performance.

clshortfuse avatar Apr 01 '16 05:04 clshortfuse

I tried it in several I.E. Browsers without a luck. Di you try I.E.? I can provide a video demo if needed.

I will try to remove the tooltips later and see if any performance changes occure...

hamsaya avatar Apr 01 '16 06:04 hamsaya

I tried it out with IE11, but didn't see anything out of order.

crisbeto avatar Apr 01 '16 07:04 crisbeto

Try moving between tabs using IE then try it with Chrome or Firefox... you will see the difference.. Now you could add more list item (and my original code is more complex) and then IE will break but chrome will render it just fine.

hamsaya avatar Apr 01 '16 12:04 hamsaya

Here is a youtube video with page reload and tab navigation: https://www.youtube.com/watch?v=C0128pKFrq8

hamsaya avatar Apr 01 '16 12:04 hamsaya

Alright, now I get it. I was not clicking around last time. Chrome should defiinitely be faster than IE, but this is waaay too slow.

crisbeto avatar Apr 01 '16 12:04 crisbeto

@clshortfuse Just did quick check on watch and digest before and after removing tool tip.

after Watch Count: 196 Digest Cycle Length: 5.54

before Watch Count: 256 Digest Cycle Length: 1.83

no significant performance improvement on IE.

hamsaya avatar Apr 01 '16 13:04 hamsaya

Seems like CSS issue, rather than one with Angular. I believe it could be related to https://github.com/angular/material/issues/7540

crisbeto avatar Apr 01 '16 13:04 crisbeto

@crisbeto that is what I suspected ...

hamsaya avatar Apr 01 '16 14:04 hamsaya

If you switch back to 1.0.5 in your code pen, IE gets back on track. I don't know if 1.1 is far from release but it may be worth to consider a 1.0.7 with just the fix for IE (that is already in 1.1rc1)...

sdebionne avatar Apr 01 '16 14:04 sdebionne

@hamsaya I'm not sure how it was in 1.0.5, but it's much better in 1.1.0-rc2. Here's a fork of your fiddle: http://codepen.io/crisbeto/pen/eZGWVQ. It still has a bit of stutter, but it's better than 1.0.6.

crisbeto avatar Apr 01 '16 16:04 crisbeto

@crisbeto since 1.1 is in RC I did not try it... 1.0.5 looks good too... RC looks good too.

hamsaya avatar Apr 01 '16 16:04 hamsaya

@crisbeto are we going to expect this be completely fixed in 1.1.0? I see that it is in 1.1.0 milestone...

hamsaya avatar Apr 01 '16 17:04 hamsaya

I can't guarantee anything, but I'll be looking into the stutter that happens the first time you switch tabs. As for the major lag that was being seen in 1.0.6, as I understand it, it made it into the release by accident so it should be removed in 1.1.0.

crisbeto avatar Apr 01 '16 17:04 crisbeto

I'll close this one for now since the main performance issue will be resolved in 1.1. As for that slight frame drop I experienced in the codepen, I couldn't reproduce it locally so it might be caused by something within codepen.

crisbeto avatar Apr 06 '16 21:04 crisbeto

There is still some performance issue per #4940

hamsaya avatar Apr 08 '16 15:04 hamsaya