Skip to content

Running many animations on timer when the tab is in background causes a memory leak #9865

Closed as not planned
@angryziber

Description

@angryziber

Describe the bug

Probably because Chrome throttles timers/rendering when tab is not active.

Reproduction

Run many e.g. flip animations when the browser tab is not active and it eventually crashes.

Probably all animation functions should check for
document.visibilityState === 'visible' before they are run, this will save CPU and memory when tabs are not active.

Logs

No response

System Info

Chrome 120

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions