- Added IntersectionObserver to track component visibility. - Paused requestAnimationFrame loop when component is not intersecting. - Resumed loop when component becomes visible. - Added unit tests to verify start/stop behavior.
2.8 KiB
2.8 KiB