I have a function that needs to fire on load, resize and the first time scrolling. How can I combine the following two functions in one, to do that?
Alternative ways are welcome too of course.
$(window).on("load resize",function(e){
});
$(window).one("scroll", function() {
});