Improve Hero Scroll Performance #11

Merged
google-labs-jules[bot] merged 2 commits from perf/hero-scroll-optimization-17565878780941299000 into main 2026-01-23 10:03:35 +00:00

2 Commits

Author SHA1 Message Date
Melvin Ragusa
7c3dd7b5cb Merge branch 'main' and resolve conflict in Hero.test.tsx 2026-01-23 11:03:04 +01:00
google-labs-jules[bot]
196ab41ac6 refactor(Hero): replace scroll listener with IntersectionObserver
- Replaced window scroll event listener with IntersectionObserver for better performance.
- Added a sentinel element to track scroll position relative to the top.
- Updated tests to mock IntersectionObserver and verify behavior without scroll events.
2026-01-23 09:31:08 +00:00