Files
homeproz/wp-content
Hanson.xyz Dev ecc182ebf9 Rewrite infinite scroll to use card-based virtual scrolling
- Measure page positions via first card's getBoundingClientRect
  (page wrappers use display:contents so have no box)
- Convert individual cards to placeholders when scrolling away
  (store HTML in jQuery data, set fixed dimensions, empty content)
- Restore cards from placeholders when scrolling back
- Calculate current page based on which page's top is closest
  to viewport bottom without being below it
- DLP (Desired Loaded Pages) = [CP-2, CP-1, CP, CP+1, CP+2]
- Load one page at a time via AJAX

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-17 02:02:35 -06:00
..