Con jQuery possiamo intercettare le pause nello scrolling di una pagina.
La soluzione รจ la seguente:
(function( $ ) {
$(function() {
$( window ).scroll(function() {
// L'utente sta scrollando
clearTimeout( $.data( this, "scrollCheck" ) );
$.data( this, "scrollCheck", setTimeout(function() {
// L'utente ha smesso di scrollare
}, 250) );
});
});
})( jQuery );