Re:Coding Horror: The End of Pagination
by threecreepio on Tuesday March 27, 2012 @08:01PM
(#3764041)
I have a site in progress that's used an endless paging with a sliding window, so after 5 pages it'd clip the top page. It was a little irritating in that you could notice that something different was happening with the scrollbar once you hit the limit, but other than that it did work well on mobile devices.
In the end we had to replace the endless bit with a big "load more" button though, for unrelated reasons.
When you remove your content, measure it first and keep your new content properly offset. This way the scrollbar won't change since your new content is positioned correctly. The old content is removed from the DOM, but the space it took up is still accounted for.
Curious how much havoc that would wreck on the scrollbar & swipe scrolling on mobile.