code: function infiniteScroll() {
      if (infiniteScroll.bound) return;
      var body = o('body');
      hideLoading();
      infiniteScroll.bound = true;
  
      o(window).scroll(function (e) {
          var top = body.scrollTop()
              , height = body.innerHeight()
              , windowHeight = window.innerHeight
              , pad = 30;
  
          if (top + windowHeight + pad >= height) {
              to += more;
              infiniteScroll.bound = false;
              showLoading();
              o(window).unbind('scroll');
          }
      });
  }
docs: Infinite scroll.