How to get infinite scroll to work?

I’m trying to get this infinite load script to work in my project. Here’s my HTML: