Skip to content

Loading states are too heavy #387

Description

@viktor-yakubiv

I discovered that the fan in my laptop enables when I open the page which has the loading animation, e.g. search card in loading state. The browser reports significant energy usage from the page. If I remove that element, things become normal.

I assume this happens because the animation is applied to too many elements. It can be optimised applying animation to only the parent element with [aria-busy=true] despite it could have children.

There are 2 options: render in pseudo-element or with background-image. I prefer background-image due to safety usage along with pseudo-elements but ::after could look better on the other hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions