Skip to content

Multiple reflow per rendered row #5078

@vanslly

Description

@vanslly

Description

When the grid renders a row it causes reflow multiple times which impacts initial rendering performance. The grid queries the igx-horizontal-virtual-helper element's scrollLeft twice for each row rendered; which causes reflow.

Additionally, style.left is set instead of using GPU accelerated translate: transformX(...) which likely also worsens performance.

  • igniteui-angular version: 7.3.4
  • browser: Chrome 74

Steps to reproduce

  1. Create a new Angular app with igniteui-angular@7.3.4 as a dependency.
  2. Add a basic grid
  3. Use Chrome to performance profile the initial grid render.
  4. Notice the purple blocks on Chrome Dev Tools Performance Tabs's flame chart.

Result

Flame Chart:
NonCachedHorizontalScrollFlame

Source View:
NonCachedHorizontalScroll

Expected result

No reflow per row rendered. The horizontal scroll position should be cached.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions