What are the recommendations for infinite scroll?
Don't use it. It's an antipattern and an awful meme.
Pagination with rel=“next” and rel=“prev” (2011)
81–90 of 96 posts
Re: Pagination with rel=“next” and rel=“prev” (2011)
#82What are the recommendations for infinite scroll?
Re: Pagination with rel=“next” and rel=“prev” (2011)
#83Earlier quoted context omitted.
Safari's Reader view is one of the primary reasons why Safari's my default browser. I still use Chrome for development but 99% of browsing & reading, I do in Safari. Low power usage and the speed of Reader view is just unbeatable. It works so well and concatenates most of the paginated articles as well. If you couple it with Page One extension (it has a bunch of rules that automatically re-directs you to a single-pag…
Safari's reader view is actually a modified version of readability. At one point I believe Apple even mentioned this in some about screen or article. There are extensions/bookmarklets available for other browsers at https://www.readability.com . Personally, I've been reading long form and paginated content using the readability Send to Kindle bookmarklet which works great.
Re: Pagination with rel=“next” and rel=“prev” (2011)
#84Re: Pagination with rel=“next” and rel=“prev” (2011)
#85One of their examples is a single sentence split over three pages of an article. I'm not sure if that's just a toy example, or also a jab at the way clickbaiters game the view counts.
Re: Pagination with rel=“next” and rel=“prev” (2011)
#86Literally one of the greatest things about the Opera browser was that you could browse an entire forum or whatever (longform article etc) with the Space key, because the browser would automatically go to the `next` page on hitting the bottom of the page. They also did some cool stuff with swiping to the next page on mobile. Opera seemed like the only browser vendor that truly championed next/prev. I only do it now as…
Re: Pagination with rel=“next” and rel=“prev” (2011)
#87[1]: https://developer.github.com/guides/traversing-with-paginati...
[2]: https://github.com/backbone-paginator/backbone.paginator
Re: Pagination with rel=“next” and rel=“prev” (2011)
#88Earlier quoted context omitted.
This sounds like a really premature optimization to me. Let the DB do it's job unless you have an explain trace showing it's slow for your workload. Trying to do things like sequence columns adds complexity, when this is often handled by the engine.
OFFSET is not "handled by the engine". It heapsorts the entire dataset before you offset to a page. The top-level comment is asking for good ways to paginate. OFFSET works on localhost and with hundreds of rows. My solution is one that works in production once OFFSET fails you. For me, it was day 2.
You don't need to heapsort the entire dataset before you offset to a page, and there are engines capable of doing this.
Re: Pagination with rel=“next” and rel=“prev” (2011)
#89What are the recommendations for infinite scroll?
Don't use it. It's an antipattern and an awful meme.
Similar is google maps. If you make it a large canvas where the missing data is paged in then it becomes quite natural.
Re: Pagination with rel=“next” and rel=“prev” (2011)
#90Also known as a good way to break many a SPA.
Single page application? Can you explain why the existence of next/prev relationships would break these? I would expect such a site to simply not use this. It's definitely nice for linearly-linked content on supporting browsers (e.g. old opera, as mentioned elwewhere in this thread).