Optimize getAnimations() calls
Opened this issue · 2 comments
nickschot commented
Two points we need to consider:
- Using
document.getAnimations()
to pause all animations in willTransition may be more efficient than doing it per sprite as we'd issue a single call to the DOM getAnimations()
returns all animations, including CSS transitions/animations. Not sure yet if we can distinguish between them and if it matters.
nickschot commented
This may not be needed if we time our DOM reads/writes properly.