Skip to content

[Accordion] Rendering many expansion panels is slow #8287

Open
@ztgluis

Description

@ztgluis

Bug Report

Hello, wanted to post here an issue I haven't seen posted already.

Trying to use mat-accordion with expansion panels to display large amounts of data and noticed a decrease on performance and slow animation and rendering time.

You might suggest that accordions are not best suited to display large amounts of data or that I should paginate, but for my specific use case I do need to display those large amounts of data and the accordion look and feel is exactly what I'm looking for.

Here is a Stackblitz demonstrating the slow performance, uncommenting lines 14 and 17 of the app.component.ts file will increasingly affect performance (and maybe crash your browser?):

https://stackblitz.com/edit/angular-bg9puu?file=app%2Fapp.component.ts

Using latest Angular 5.0.0 and Material 5.0.0-rc0 for the stackblitz but having the same issue in Angular 4.4.6 and Material 2.0.0-beta.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: cdk/accordionperfThis issue is related to performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions