Created
September 10, 2018 18:57
-
-
Save szabo92/66e54ad28c2e75fb6e00ce567c720643 to your computer and use it in GitHub Desktop.
Load more data on scroll
This file contains hidden or 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
window.onscroll = function() { | |
if (window.scrollY + 1 > document.body.clientHeight - window.innerHeight) { | |
// load more data | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment