Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What I have right now is a single-column page with Paul Irish's Infinite Scroll serving up new content. After scrolling to the bottom, however, the script will often attempt to continue loading new pages when none exist. The script should print an error message when no new content can be served, usually triggered by a 404. From his FAQ:

Does it still keep going, even at the end of the blog?

Infinite scroll is configured to die when it hits a 404 Not Found status code, so when it goes through all your archives it should hit a /page/43/ (or something) that doesn’t exist, then show a message “Congrats, you’ve reached the end of the internet.” Some wordpress themes don’t report not found pages with a 404. Try a different theme or contacting the theme author.

As far as I can tell tumblr serves a blank page instead of a 404. Is there any way to alter this behavior so that Infinite Scroll stops properly?

share|improve this question
Tumblr has two variables, {CurrentPage} and {TotalPages}, that may be useful. – Sean Haugh Feb 16 '13 at 0:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.