Open Bug 1698644 Opened 3 years ago Updated 2 years ago

CSS animation on https://www.reifen.de/ cause a permanent ~50% load of Firefox

Categories

(Core :: CSS Transitions and Animations, defect, P3)

Firefox 88
defect

Tracking

()

People

(Reporter: whimboo, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: power)

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0 ID:20210312033752

The website https://www.reifen.de/ uses a CSS animation with animation-iteration-count=infinite on the image-loader class as used by several images that causes a 50% CPU load of Firefox. It's 10% more than for Safari.

The load is divided into the following buckets:

main process ~38% (mostly WebRender threads)
web content process ~12% (nearly all in the main thread)

Here a recorded profile: https://share.firefox.dev/3cG16fU

Not sure if that is just a web compat bug and that the website shouldn't use infinite here. But given that no animation is visually recognizable I wonder if there could also be done some optimizations on our side.

Severity: -- → S2
Priority: -- → P2

Hey Henrik is this still an issue?

Flags: needinfo?(hskupin)

CPU load is clearly lower these days. It's mainly the main process which takes up to 15%.

Flags: needinfo?(hskupin)
Severity: S2 → --
Priority: P2 → --
Product: Testing → Core
Component: Performance → CSS Transitions and Animations

Boris, can you take a look at this to determine priority and severity? Thanks

Flags: needinfo?(boris.chiou)

Looks like there are lots of div.image-loaders running the lazyLoader keyframes with background-position-x property, (which is running on the main thread). We don't see that because it uses opacity: 0 for these divs. At least right now this doesn't cause high CPU. It just make the main thread keep running a lot of animations. Set P3 and S3 for now.

Severity: -- → S3
Flags: needinfo?(boris.chiou)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.