I'm working on a angular 4 application. It runs fine on chrome & firefox but the performance on IE11 the load times are unacceptable. Router changes on Chrome/FF are about 0.5s (for more elaborate pages) and about 5s on IE11. Opening a dropdown (by adding/removing a CSS class to set display:none) is instant on Chrome/FF and takes about 3 seconds on IE11.
The IE11 profiler shows the following when opening a dropdown:
1
2
And the timeline is completly full of classList.add() and classList.remove() calls:
1
2
It's the same couple of elements on which classes are added/removed over and over again. Buttons
The dropdown simply uses the [ngClass] directive:
<div class="dropdown-menu"
[ngClass]="{
'show': open,
'mod-dropup': dropup,
'mod-right': rightAlign
}">
<ng-content></ng-content>
</div>
I added all of the required polyfills in the polyfills.ts. What could be the cause of this?
Versions:
Angular 4.4.3
Internet Explorer 11.1884.14393.0