var $win = $(window), $marker = $('#marker');
function setOnScroll() {
$win.scroll(function() {
if ($win.scrollTop() + $win.height() >= $marker.offset().top) {
$win.unbind('scroll');
// load there
}
});
};
setOnScroll();