Scrollin’, scrollin’, scrollin’

A few weeks ago, when I changed how the front page of this site works, I wrote about “streams”, infinite scrolling, and the back button:

Anyway, you’ll notice that the new home page of adactio.com is still using pagination. That’s related to another issue and I suspect that this is the same reason that we haven’t seen search engines like Google introduce stream-like behaviour instead of pagination for search results: what happens when you’ve left a stream but you use the browser’s back button to return to it?

In all likelihood you won’t be returned to the same spot in the stream that were in before. Instead you’re more likely to be dumped back at the default list view (the first ten or twenty items).

That’s exactly what Kyle Kneath is trying to solve with this nifty experiment with infinite scroll and the HTML5 History API. I should investigate this further. Although, like I said in my post, I would probably replace automatic infinite scrolling with an explicit user-initiated action:

Interpreting one action by a user—scrolling down the screen—as implicit permission to carry out another action—load more items—is a dangerous assumption.

Kyle’s code is available from GitHub (of course). As written, it relies on some library support—like jQuery—but with a little bit of tweaking, I’m sure it could be rewritten to remove any dependencies (hint, hint, lazy web).

Have you published a response to this? :

Related posts

The URI is the thing

My name is Jeremy and I am a URL fetishist.

Previously on this day

17 years ago I wrote España

Next stop: Asturias.

20 years ago I wrote Earth shattering

My brother-in-law lives and works in Seattle. That’s his workplace they’re talking about in this article in this Newsweek article about Starbucks.

21 years ago I wrote Liggin'n'giggin

I’m feeling a bit fragile today after a somewhat hedonistic night out.

23 years ago I wrote Tony comes to Brighton

Tony Blair was in Brighton today for the Labour party conference. Here’s the full text of his speech. It’s pretty stirring stuff although mentioning Europe right now smacks a little of opportunism. Overall, a good speech from a great speaker.

23 years ago I wrote The W3C Patent Policy

The World Wide Web Consortium has come under a lot of fire recently for burying a proposal that would allow its recommendations to be released under a fee-paying licence.