This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
mdSubheader: High CPU usage with AngularJS 1.4.x #3531
Closed
Description
I was trying to use a sticky <md-subheader>
and found out that on my page it appears to cause a high CPU usage when I try to scroll a container with subheaders. The subheader example at https://material.angularjs.org/latest/#/demo/material.components.subheader works just fine.
Here is the output of Chrome's CPU profiler:
.cpuprofile file
I am able to reproduce the problem with this CodePen on Chrome 43.0.2357.130, 45.0.2438.3, Microsoft Edge 20.10158.0.0. The page uses AngularJS 1.4.1 and Angular Material 0.10.0.
Is this a bug or am I trying to use the <md-subheader>
in a wrong way?