News for hackers. Stuff that matters.
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by marknutter on Friday August 17, 2012 @08:44AM (#4396066)
HN likes to pretend that infinite scrolling has no utility, but it's simply not true. For sites where you want to quickly scan a lot of content, infinite scrolling is vastly superior to static pagination. For sites where you will typically consume every item in the list carefully and want to refer back to specific points in the list, pagination is vastly superior to infinite scrolling. They both have their benefits.
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by rplnt on Friday August 17, 2012 @09:30AM (#4396211)
It's a good feature but it is often done so horribly it becomes not liked. Rule number one: If you use infinite scrolling instead of pages, don't remove pages. Especially on pages where content is somehow ordered (shops, lists, ..).
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by marknutter on Friday August 17, 2012 @09:31AM (#4396219)
I agree it should be done well, but I don't agree you always need pages. For instance, when I use google images, I'm usually just looking for a few specific images in a sea of pictures and I don't care too much about keeping my place in that list. I care a lot more about being able to quickly scan through a very large grid of images, though, which infinite scrolling allows me to do.
Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by s_henry_paulson on Friday August 17, 2012 @10:05AM (#4396377)
The one caveat here is, if you're going to use infinite scrolling. Don't have links on the bottom of the page!

Sites like Facebook do this, and I have no idea why.

Want to "Create a page". Well there's a link at the bottom. But if you scroll to the bottom of the page, it's going to load more content and push the link down.

I just tried it, and the page reloaded 15 times before I gave up... never did get to the link.

Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by isnotchicago on Friday August 17, 2012 @11:38AM (#4396916)
On the right sidebar, under "Facebook (c) 2012" should be duplicates of all of the links at the bottom of the page. For the "Create a page" link, you have to click "More".

This is clearly unintuitive, but at least it exists.

Re:Airbnb Releases Infinity.js: A Javascript Library for Smo... by J0415 on Friday August 17, 2012 @11:31AM (#4396857)
Its probably there just in case scroll detection breaks. Some browsers - specifically BlackBerry browser (v4.6 to 5.0) - support AJAX lazy loading but don't support the scroll event.