When leaving a page running in the background, it's possible for it to accumulate many thousands of animations that haven't run yet. When the user suddenly returns to the page, `trimmedAnimationQueue` struggles to trim it down and takes a lot of time.