TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pagination with rel=“next” and rel=“prev” (2011)

212 pointsby gormabout 9 years ago

11 comments

kmfrkabout 9 years ago
Literally 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.<p>Opera seemed like the only browser vendor that truly championed next&#x2F;prev.<p>I only do it now as a habit because of Opera - and, since switching to Chrome after Opera&#x27;s nadir, for accessibility, regardless of whether screenreaders respect it. But I probably wouldn&#x27;t know about it if not for Opera.<p>It&#x27;s both wistful and aspirational to use them, because this is the way browsers were supposed to work - as was generally the case with most things Opera, of course.
评论 #11516401 未加载
评论 #11516255 未加载
评论 #11516165 未加载
评论 #11517997 未加载
评论 #11516168 未加载
评论 #11516016 未加载
评论 #11518750 未加载
评论 #11519610 未加载
detaroabout 9 years ago
I wonder why they recommend putting &lt;link rel=&quot;...&quot;&gt; tags into the head, instead of marking up existing &lt;a href&gt; tags (which you&#x27;ll have in most cases for prev&#x2F;next) with rel-attributes. Actual difference in parsing? Just because &lt;a&gt; tags might not be on <i>every</i> site?
评论 #11516229 未加载
评论 #11526470 未加载
评论 #11516747 未加载
评论 #11516933 未加载
评论 #11517247 未加载
SilasXabout 9 years ago
One of their examples is a single sentence split over three pages of an article. I&#x27;m not sure if that&#x27;s just a toy example, or also a jab at the way clickbaiters game the view counts.
评论 #11518614 未加载
captainmuonabout 9 years ago
Ah, this might be the cause of the infuriating behavior where you search for a term, and it appears in one page in a huge forum thread, but after clicking on a search result you end up somewhere completely else in the thread.<p>I don&#x27;t know whether Google sends you there, or whether the site redirects you from the &quot;view all&quot; page to the first page, but the result is pretty annoying.
wyuenhoabout 9 years ago
Besides making the big G happy, these semantic relationships also helps libraries authors to easily traverse a series purely on the front end. Years ago, I looked at Github&#x27;s pagination API [1] and discovered this approach also makes infinite paging much easier, just send me a bunch of next pointers until there aren&#x27;t any more. So I decided to support this format by default.<p>[1]: <a href="https:&#x2F;&#x2F;developer.github.com&#x2F;guides&#x2F;traversing-with-pagination&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.github.com&#x2F;guides&#x2F;traversing-with-paginati...</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;backbone-paginator&#x2F;backbone.paginator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;backbone-paginator&#x2F;backbone.paginator</a>
kevindeasisabout 9 years ago
How do you guys implement &#x2F; What&#x27;s the best practice for paginating your db using sql and nosql?<p>I know there are a bunch of gotcha&#x27;s to look out for
评论 #11516282 未加载
评论 #11516652 未加载
评论 #11516390 未加载
评论 #11516549 未加载
评论 #11517441 未加载
评论 #11516498 未加载
评论 #11516561 未加载
Roberto_uaabout 9 years ago
What are the recommendations for infinite scroll?
评论 #11516046 未加载
评论 #11516764 未加载
评论 #11518160 未加载
评论 #11516141 未加载
CiPHPerCoderabout 9 years ago
This is a blog post from 2011. The current HN submission title does not indicate this article&#x27;s age.
评论 #11515994 未加载
peterburkimsherabout 9 years ago
The iPod Notes format used this type of pagination! It was essential back then because each note could only have a maximum of 1000 characters.
draw_downabout 9 years ago
One of the nice things this does is give the browser&#x27;s &quot;reader mode&quot; a hint where the next page is. And it&#x27;s great. Only problem is, publishers seem to have no interest in helping the reader mode. On the contrary, many seem hell-bent on defeating its content detection algorithm, etc, to make it useless so we all look at their stupid ads.
dumbguyabout 9 years ago
Also known as a good way to break many a SPA.
评论 #11516262 未加载