Friday, July 11, 2014

Retain Position in Infinite Scroll

An infinite scroll kicks in more data as you scroll to the bottom of a page. For example, when viewing some galleries of pictures, new pictures are appended to the bottom of the page whenever you scroll to the bottom, and this process continues every time you get to the bottom of the page. The problem is that when you click on any picture to see its details and then click on the browser's back button, your position within the infinite scroll is lost.

Here is an elegant solution to that.

No comments: