How to Stop Infinite Scroll After a Certain Scroll Threshold?

Hi everyone,

I’m looking for a way to prevent infinite scroll from continuously loading new posts after a certain scroll threshold has been reached.

Currently, users who want to access the footer have a difficult time because new content keeps loading and pushing the footer further down the page.

Ideally, there would be a way to stop loading additional posts once the user has scrolled past a defined point (for example, when the scroll position reaches 50% of the container). Another option could be a simple toggle or “Pause Infinite Scroll” button that allows users to temporarily disable automatic loading and continue scrolling to the footer.

Has anyone implemented something similar or found a good solution for this use case?

Thanks!