In my AngularJS app, I am using Angular Material and loading data from an external API.
Everything runs smoothly in Chrome, Firefox, and Safari, but when it comes to Internet Explorer, the performance is abysmal. The app becomes slow, CSS animations are choppy, and overall usability is hindered.
I've spent a significant amount of time trying various bug fixes and debugging methods without any success.
Some observations I have made:
- When running a performance log in IE11's Developer Tools, "Style Calculations" consume the most time.
- The use of wildcard CSS selectors like
*{box-sizing: border-box}
leads to slower performance.
For example, simply scrolling through an md-virtual-repeat
element produced the following output in the performance inspector:
https://i.sstatic.net/wysWo.png
As shown in the image, style calculation
is a major bottleneck.
I have searched for solutions online but haven't found any effective workarounds. Could this be a distraction? Is there another issue within my app causing this problem despite having optimized my JavaScript code as much as possible?