Jquery, an autoscroll to bottom function at a constant speed
===

I'm trying to develop an autoscroll to bottom function that goes at a constant speed and in a smooth way independently from the height of the document and that allows ajax content loading.

here is my attempt


    $bottom = 100;
    function scroll() {
        	$('html, body').animate({scrollTop:$bottom}, 2000, 'linear');
        	$bottom = $bottom + 100;
        	scroll();
    }
    
    scroll();

any suggestion to improve it a bit? I'm not happy with the smoothness.

Thanks