News for hackers. Stuff that matters.
Re:Introducing awfulness.js by drivebyacct2 on Saturday April 14, 2012 @08:11PM (#3842359)
Infinite scroll needs to die a fire. The devs that write infinite scrolling that also lacks jumping ability, page linking or "skip to end", deserve to be set ablaze in the same fire. What a nightmare. I feel like even rudimentary testing with insufficient dummy data would reveal massive UX regressions.

And why oh why are people still writing Javascript that uses hashbangs? Educate yourself, use pushState.

(And the new Google Groups is arguably the worst of Google's redesigns. It takes a measurable 2-3 seconds when hitting the [<-] arrow to go back from a thread to the group, not to mention it's the worst examples of both of these issuses).

Re:Introducing awfulness.js by wavephorm on Saturday April 14, 2012 @08:19PM (#3842368)
No, infinite scrolling can work. The problem is Facebook and other sites aren't doing it right. As you scroll the URL should update with corresponding hash tags for how far down the page you went (eg /#20 /#40 /#50). Then if you go forward and back the correct block can be loaded. Facebook is the best example of a poorly implemented infinite scroll.
Re:Introducing awfulness.js by callahad on Saturday April 14, 2012 @09:01PM (#3842428)
I still don't think that's quite right, since you're presumably numbering the newest item as "0" and then counting up from there. Which means after 20 new posts come in, my link to /#20 no longer takes me where I want it to.

Similarly, with history.pushState and history.replaceState, why use hashtags instead of actual URLs?

Re:Introducing awfulness.js by mudetroit on Saturday April 14, 2012 @10:13PM (#3842535)
I have been thinking about what the url space for infinite scrolling should look like, and I think that if you have meaningful titles you should probably use those as your indicators instead of numbers. Still having paging links makes sense to jump groups of posts.

As for the hashtag, it is a worthwhile thought and you could probably go either way on that one. If you think of the original purpose of the hashtag it was to jump to a specific anchor on the page.

Re:Introducing awfulness.js by drivebyacct2 on Saturday April 14, 2012 @08:34PM (#3842394)
Do the other blocks have to load before it when I come back from having clicked on a link? Has anyone implemented an inf scrolling in such a way that doesn't violate these things or at least force me to experience a very displeasurable leerching around the page as it loads?

Do I still get paginated links as well with this?

Re:Introducing awfulness.js by sp332 on Saturday April 14, 2012 @09:04PM (#3842430)
I think this is the best one I've seen so far. http://tumbledry.org/2011/05/12/screw_hashbangs_building
Re:Introducing awfulness.js by drivebyacct2 on Saturday April 14, 2012 @09:17PM (#3842454)
Thank you for this. I've been toying with trying to make a really respectable inf scrolling to validate wavephorm's comments and my concerns. This is a nice starting place.