? , ...
$(window)
.on('scroll.myscroll', function () {
})
.trigger('scroll.myscroll');
But if you really want to run it when the window loads (assuming the DOM is fully loaded, including images, etc.), then the other examples mentioned in this document are great. But use the .on () method, not the .bind () method.
$(window).on('scroll.myscroll load.myload', function () {
});
source
share