Infinite Scroll Issues

Hello.

There is a page that has Infinite Scrollattached to it. The plugin is needed for infinite scrolling. The script takes from the page view.php?page=[num]. On view.php I have the code for page output from the database.

Let’s say you can view 3 pages in view.php (1 < page < 4). Those. pages with a number greater than the number of pages display nothing. But the JS script still requests pages that don’t exist, i.e. and it will also reach pagu = 250. How to stop it?

Thank you.


Answer 1, authority 100%

Infinite scroll is configured to die when it hits a 404 Not Found status code

Try giving it a 404 error when it asks for a page that doesn’t exist.

Leave a reply

Please enter your comment!
Please enter your name here