Skip to content

Instantly share code, notes, and snippets.

@nbriz
Last active February 27, 2018 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nbriz/a953329e41afaef392d0 to your computer and use it in GitHub Desktop.
Save nbriz/a953329e41afaef392d0 to your computer and use it in GitHub Desktop.
quickscroll.js
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();
@nbriz
Copy link
Author

nbriz commented Jul 17, 2014

@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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment