commonsearch / cosr-front

Frontend of Common Search. Go server for fetching and rendering results + HTML5 UI to browse them.
https://uidemo.commonsearch.org
Apache License 2.0
61 stars 13 forks source link

Add infinite scrolling? #12

Open sylvinus opened 8 years ago

sylvinus commented 8 years ago

DuckDuckGo does a good job at this. Should we do the same?

I know there is an argument against infinite scrolling in many cases. Does it apply to us? What about the (currently non-existent) footer? What about mobile?

mauricesvay commented 8 years ago

Arguments against infinite scrolling:

Infinite scrolling is much more common pattern on mobile. Supporting infinite scrolling on desktop would make the experience more consistent across devices.

sylvinus commented 8 years ago

Good points @mauricesvay!

Pagination offsets are already accessibly by URL (and will continue to be, we have to support javascript-less clients) so it would indeed make sense to update the p=N parameter in the URL via html5 history to allow coming back to the same spot.