Skip to content

Instantly share code, notes, and snippets.

@pazguille
Created May 10, 2012 15:43
Show Gist options
  • Save pazguille/2654024 to your computer and use it in GitHub Desktop.
Save pazguille/2654024 to your computer and use it in GitHub Desktop.
Determining when scroll to bottom of a page
$(window).on("scroll", function () {
if(window.scrollY + window.innerHeight == document.body.scrollHeight) {
console.log("bottom!");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment