I am using this code:
function resizeJquerySteps() {
$(\'.wizard .content\').animate({
height: $(\'.body.current\').outerHeight()
}, \'slow\'
This function defined in some library like this http://benalman.com/code/projects/jquery-throttle-debounce/jquery.ba-throttle-debounce.js
You need to include this library into your project. See example here http://jsfiddle.net/hYsRh/4/
$(window).scroll($.debounce( 250, true, function(){
$('#scrollMsg').html('SCROLLING!');
} ) );