Last active
February 27, 2018 15:38
-
-
Save nbriz/a953329e41afaef392d0 to your computer and use it in GitHub Desktop.
quickscroll.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pheight = 0; | |
function quickScroll(){ | |
if(pheight < document.height){ | |
pheight = document.height; | |
window.scrollBy(0, document.height); | |
setTimeout(quickScroll, 500); // adjust incase ajax is slow | |
} | |
}quickScroll(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@wherestheprophet i realize that + i agree, this is a kinda quick/dirty solution, but it's all on here so folks r free + encouraged to fork && improve :)