angular-ui/ui-grid

ui-grid causing too many DOM reflows on IE11

Fermée

#5 855 ouverte le 7 déc. 2016

 (1 commentaire) (1 réaction) (0 personne assignée)JavaScript (2 496 forks)batch import
Browser IEhelp wantedseverity: performance

Métriques du dépôt

Stars
 (5 395 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

When a redraw is called for the grid, it calls elementHeight which calls the swap function on the pagination control (even if the controls are disabled by enablePaginationControls: false).

swap then iterates through a list of properties causing a reflow each time.

On IE11 this happens a large number of times effectively stalling the main thread.

There should be no need to call any kind of DOM reads/writes for this if enablePaginationControls == false,

Guide contributeur