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,

貢獻者指南