API …
Dynamic & timing

Lazy loading & scroll

Load-more buttons, infinite scroll with IntersectionObserver, skeleton screens and lazy images.

Practice tasks

  • Click Load more until the button disappears and assert 30 items in total.
  • Scroll inside the infinite box and wait until the item count reaches 24.
  • Assert the skeleton shows first, then is replaced by the real content.
  • Scroll the lazy image into view and wait for its naturalWidth to be greater than zero.
  • Mock /api/feed with page.route to return a single item and assert the UI.

More Dynamic & timing practice