This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngOptions slow in IE with large arrays #12076
Closed
Description
I have a 500+ element array which I want to bind to a <select>
element.
In Chrome, this works fine, adding the array takes a fraction of a second.
In IE, it takes multiple seconds to add the array, during which time the UI is unresponsive.
Looking at timelines, it appears that Chrome recalculates styles after all <option>
elements are added, but IE calculates styles and layouts after each <option>
is added.
Maybe using documentFragments
could fix this?
Plunker: http://plnkr.co/edit/ULtEHtcD5La4Ax7hd5kY?p=preview