The Onion releases a javascript library: fartscroll.js (does what it says on the tin): http://t.co/KaKU4eu2Tl