score:1

Accepted answer

Trying to check on scroll might be what you're looking for:

  $(window).scroll( function() {
      update();   
      console.log('fire');
    });

Fiddle


Related Query

More Query from same tag