Ad

Infinite Scroll With Pagination Demo

- 1 answer

here is a live example of infinite scroll

http://scrollsample.appspot.com/

which works fine and I want to use it for my website too. But what I can't understand is

by scrolling up or down in head area the links

<link rel="canonical" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="/..." />
<link rel="next" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="...."/>
<link rel="prev" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="...."/>

are updated automatically, can someone please guide me where it is heppening in JavaScript I can't find such updates.

Ad

Answer

Not sure how it is done on this site but you can go with this: jQuery Waypoints and if you use history.js for the URL you can change the url without the hashtags.

Ad
source: stackoverflow.com
Ad