Infinite scrolling is a technique that allowing users to scroll through a massive chunk of content with no finishing-line in sight. This technique simply keeps refreshing a page when you scroll down it. Tempting as it may sound, the technique isn’t a one-size-fits-all solution for every site or app.
When we need to implement the infinite scroll functionality on our projects, we can use the following library.
https://github.com/Elkfox/Ajaxinate
This plugin is so cool for infinite-scroll, so you can use this plugin for your any projects easily.