I\'m trying to figure out a way to do this. I have a list of boxes, each about 150px high. I am using javascript (and jquery) and want that, after a user scroll
150px
This is basically the same as Šime Vidas' answer, but less complex:
var scrollTimeout = null; $(window).scroll(function(){ if (scrollTimeout) clearTimeout(scrollTimeout); scrollTimeout = setTimeout(function(){yourFunctionGoesHere()},500); });
500 is the delay. Should be ok for mouse scroll.