angular-ui/ui-grid

ui-grid causing too many DOM reflows on IE11

已关闭

#5,855 创建于 2016年12月7日

 (1 条评论) (1 个反应) (0 位负责人)JavaScript (2,496 个派生)batch import
Browser IEhelp wantedseverity: performance

仓库指标

星标
 (5,395 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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,

贡献者指南