-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calcite-loader performance issue in Chrome #8709
Comments
**Related Issue:** #8709 ## Summary Improves performance by using `will-change` to hint at browsers to render animations in a separate layer, reducing repaints. ### Current <img width="1142" alt="Screenshot 2024-02-08 at 11 01 37 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/fb36dfb1-7cf8-4c1d-9d32-6d027b68e6f9"> <img width="1113" alt="Screenshot 2024-02-08 at 11 00 19 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/b7263c18-a728-4e88-a404-68aa83705b0f"> ### Optimized (`will-change: contents`) <img width="1104" alt="Screenshot 2024-02-08 at 11 00 41 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/51a03530-471f-493f-a183-a527d1e1b65f"> <img width="1157" alt="Screenshot 2024-02-08 at 11 00 59 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/3ef2a801-992a-449e-a150-65b8d489c5be">
Installed and assigned for verification. |
@geospatialem @jcfranco @DitwanP This is a pretty significant issue for Workflow Manager and is a must-have fix for R1 release. |
I can't speak to the JS API picking it up, but the fix is available on As a workaround, if you own the loaders, you could apply the following style in the meantime (same as the fix): calcite-loader {
will-change: contents;
} Note: this workaround won't affect loaders that are used internally by other components (i.e., loaders showing up when toggling a component's |
The This means it'll accept: 2.4.0 <= version < 3.0.0 |
Verified with Chrome |
**Related Issue:** #8709 ## Summary Improves performance by using `will-change` to hint at browsers to render animations in a separate layer, reducing repaints. ### Current <img width="1142" alt="Screenshot 2024-02-08 at 11 01 37 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/fb36dfb1-7cf8-4c1d-9d32-6d027b68e6f9"> <img width="1113" alt="Screenshot 2024-02-08 at 11 00 19 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/b7263c18-a728-4e88-a404-68aa83705b0f"> ### Optimized (`will-change: contents`) <img width="1104" alt="Screenshot 2024-02-08 at 11 00 41 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/51a03530-471f-493f-a183-a527d1e1b65f"> <img width="1157" alt="Screenshot 2024-02-08 at 11 00 59 PM" src="https://github.com/Esri/calcite-design-system/assets/197440/3ef2a801-992a-449e-a150-65b8d489c5be">
Check existing issues
Actual Behavior
When the Loader component (indeterminate) is on a page, the "Google Chrome Helper (Renderer)" process CPU utilization begins climbing and we begin to see rendering responsiveness issues elsewhere on the page. The behavior can be observed on the the doc page for the loader: https://developers.arcgis.com/calcite-design-system/components/loader/
We do not see the same impact on responsiveness or CPU utilization on Firefox.
Expected Behavior
CPU utilization remains stable and does not negatively impact other elements on the page
Reproduction Sample
https://developers.arcgis.com/calcite-design-system/components/loader/
Reproduction Steps
Reproduction Version
2.3
Relevant Info
MacOS 14.1.2 (23B92)
Version 121.0.6167.139 (Official Build) (x86_64)
Regression?
No response
Priority impact
p1 - need for current milestone
Impact
No response
Calcite package
Esri team
Workflow Manager
The text was updated successfully, but these errors were encountered: