Reverse infinity scroll | Sololearn: Learn to code for FREE!


Reverse infinity scroll

anybody can help in this problem ? tks in any case

7/27/2017 7:16:48 AM


1 Answer

New Answer


In javascript use an event listener on the window or document and if the user scrolls up more than x amount of pixels then send and Ajax request to the server. When the server responds, you simply prepend the new data. Quite easy with jQuery's prepend() method. You can also use vanilla javascript using insertBefore.