mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Replaced the scroll event listener and `getBoundingClientRect` polling loop with `IntersectionObserver` to eliminate layout thrashing and reduce main thread work during scrolling. Verified logic with unit tests and confirmed no regressions in frontend behavior. Co-authored-by: PR0M3TH3AN <[email protected]>