Infinite Scroll (Vanilla JS)

Build a feed in vanilla JavaScript that loads more posts as the user scrolls, using a throttle function you write yourself, with loading, error and end states that work for keyboard and screen reader users.

Asked in frontend interviews at Meta and LinkedIn