Quick Answer
Infinite scroll: listen to window scroll, check if near the bottom ($(window).scrollTop() + $(window).height() >= $(document).height() - 200), then $.get for more items and append. Throttle the scroll handler to fire at most every 100ms. Show a spinner while loading. Use IntersectionObserver on a sentinel element at the bottom - cleaner than scroll math.
Answer
Detect scroll position with scroll event. Load additional content via AJAX when near bottom. Use throttling/debouncing to reduce event firing. Useful for feeds, galleries, or product listings.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.