Autopopulation
In this lesson we learn how to dynamically load more tweets.
We'll cover the following
Scroll action listener #
Let’s add an event listener to the scroll action, and when it reaches near the bottom of the page (say, 100px above), we’ll use that as a trigger to load. Here’s where the states will be used. If the state is in pending, we know not to trigger another request.
Get hands-on with 1400+ tech skills courses.