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");
});