Created
October 2, 2012 12:25
-
-
Save fredkingham/3818629 to your computer and use it in GitHub Desktop.
simplest infinite loading
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
$(window).on('scroll.loader', function() { | |
if ($(document).height() - 30 <= $(window).height() + $(window).scrollTop()) { | |
// your go off and get html to append | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment