New issue
Advanced search Search tips

Issue 613166 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

visibility: hidden animation doesn't stop painting

Project Member Reported by schenney@chromium.org, May 19 2016

Issue description

Version: m51
OS: All, presumably

What steps will reproduce the problem?
This was noticed on Google Keep. They have a load spinner that they hide using visibility: hidden that still uses 20-50% of the CPU due to layout and layer tree updates and so on.

What is the expected output?
Non-visible elements should not cause an otherwise static page to use a lot of CPU.

What do you see instead?
Lots of CPU usage that disappear when the visibility: hidden is changed to display: none.

The spinner in question is the standard Material Design spinner. The team want to use visibility to control the display because it can be animated. It seems like we should be able to update the animation without doing layout or going through the effort of repainting the page.

I'll try to generate a small repro.
 
visibility:hidden elements still take up space and are laid out, so stopping these animations might break layout of existing sites.
Status: Assigned (was: Available)
I agree that we don't want to stop the animations (there's a bug about the problems with that in hidden iframes), but we still don't need to paint them, which seems to be causing a lot of work in the traces I was looking at.
Ah I see. Yes we can avoid paint. Thanks for clarifying.
Summary: visibility: hidden animation doesn't stop painting (was: visibility: hidden animation doesn't stop layout and painting)
Project Member

Comment 6 by sheriffbot@chromium.org, Jul 9 2016

Labels: -M-53 M-54 MovedFrom-53
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by benhenry@google.com, Jul 13 2017

Labels: -Performance Performance-Loading Needs-Investigation Performance-Power

Sign in to add a comment