CSS animations on https://www.esprit.de cause a constant 60% CPU load
Categories
(Testing :: Performance, defect)
Tracking
(firefox88 verified)
| Tracking | Status | |
|---|---|---|
| firefox88 | --- | verified |
People
(Reporter: whimboo, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Keywords: power)
Attachments
(2 files)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0 ID:20210312033752
The high CPU load can be seen on a pages like:
https://www.esprit.de/herrenmode/bekleidung/pullover-strickjacken
Via the devtools I can see that a lot of CSS animations are running on this site. All of these are causing a permanent 60% CPU load for Firefox. It can be divided into the following categories:
- WebContent Process ~40% (main thread at 17%, and all 6 style threads at around 3.5%)
- Main process 20% (main thread ~9%, followed by WR threads at ~5% each)
Here the appropriate profile: https://share.firefox.dev/2Niz1SZ
As it can be seen there is a lot of layout specific activity in the web content process, which might be related to the huge amount of defined CSS animations?
Nevertheless when not doing anything on that page I cannot even see a visible animation. So maybe those are active for hidden elements?
Emilio, could you please have a look?
Btw. when testing that page with Safari it consumes around ~30% only.
| Reporter | ||
Comment 1•5 years ago
|
||
Actually here a profile with the style threads included: https://share.firefox.dev/3coZy9C
| Assignee | ||
Comment 2•5 years ago
|
||
Yeah, we should be able to throttle those somehow.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
| Assignee | ||
Comment 4•5 years ago
|
||
Comment 6•5 years ago
|
||
| bugherder | ||
| Reporter | ||
Comment 7•5 years ago
|
||
Thanks a lot for this extremely quick fix! It works great.
Comment 8•5 years ago
|
||
Awesome!
Description
•