I would like to setup logic for when the user begins scrolling around the page and after the scrolling is finished, how can I accomplish this?
I want to avoid the below as it means my logic will be fired repeatedly unnecessarily
$(window).scroll(function(){
console.log("scrolling");
});
You can try defining you're own debounced events. A (very crude) implementation would look something like this:
See: http://www.jsfiddle.net/yijiang/fGmbe/ for a live demo