Hey there. Vika did a good job implementing the HTTP request to receive the next page.
Basically what happens is:
- Check if there is a next-page (using
const next = activeDom.querySelector('link[rel="next"]');
) - If yes, read the DOM - elements from the post container and append them to the currently active page
I’ve described one approach in detail here: Adding Load More button for infinite scrolling of Ghost Casper - #4 by tq-bit. It’s written in TS, but you should get the basic idea.