Skip to content
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
@a-b-b-a

Description

@a-b-b-a

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.

Chrome:
Chrome Timeline
IE:
IE Timeline

Maybe using documentFragments could fix this?

Plunker: http://plnkr.co/edit/ULtEHtcD5La4Ax7hd5kY?p=preview

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions