What is the best solution for infinite scrolling?

I’m using Flickity and videojs. I have a kind of showreel of items.

I want it to load in more items once I hit the last flickity cell.

I have acheived this using the percolate:paginated-subscription package. However, when using this, you lose the Meteor.subscribe onReady callback, which I need to have for initializing Flickity and Videojs once the data is loaded.

When not using the above package, I can get everything initializing correctly, but don’t have pagination/infinite scrolling.

What’s the best solution to this?

1 Like