TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

212 点作者 gorm大约 9 年前

11 条评论

kmfrk大约 9 年前
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 未加载
detaro大约 9 年前
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 未加载
SilasX大约 9 年前
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 未加载
captainmuon大约 9 年前
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.
wyuenho大约 9 年前
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>
kevindeasis大约 9 年前
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_ua大约 9 年前
What are the recommendations for infinite scroll?
评论 #11516046 未加载
评论 #11516764 未加载
评论 #11518160 未加载
评论 #11516141 未加载
CiPHPerCoder大约 9 年前
This is a blog post from 2011. The current HN submission title does not indicate this article&#x27;s age.
评论 #11515994 未加载
peterburkimsher大约 9 年前
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_down大约 9 年前
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.
dumbguy大约 9 年前
Also known as a good way to break many a SPA.
评论 #11516262 未加载