Skip to content

Instantly share code, notes, and snippets.

@yuraloginoff
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuraloginoff/8704607 to your computer and use it in GitHub Desktop.
Save yuraloginoff/8704607 to your computer and use it in GitHub Desktop.
List load on scroll to bottom
$(window).scroll(function() {
if ( $("#ads-page").is(":visible") ) {
if ( $(window).scrollTop() + $(window).height() === $(document).height() ) {
that.config.adsOffset += that.config.adsLimit;
that.getAds();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment