Creating an endless scroll implementation

Have you ever wondered how the endless scroll works? We now go in depth on how we did it while building our WordPress plugin. Interested? Have a look at our code samples and plenty of comments for developers and non developers alike. For those that are not familiar with what endless scroll actually is, the best / most famous implementations of it would be social networks like Facebook and Twitter and many many others where you can scroll a lot and never really come to the point that says that you have reached the end of the content. At the same time, if you open the page it loads rather quickly for you and you have plenty to see. This is what the endless scroll does. It detects your position on the page, or within an element on the page (depending on the implementation) and based on that loads more content once you are close enough to the bottom. In our case, we will show you how to update the list of videos when you get at 80% of the current list, so while you are checking last 20% of content, the endless scroll implementation will load another set of 10 videos from your account. We also cover the details through the implementation and the possible gotchas that you might know, however might skip the mind during development, how to approach such projects and some ideas at the end what could be added. Please check our forum post to see the actual codes and comments that follow it. If you prefer to see the complete solution right away, just download this simple file.
PREV NEXT