On-scroll signal is lost

I use javascript on-scroll to send more content to a page. It works perfectly in IE but Chrome and Firefox stall and scrolling no longer works. What is the problem and how is it fixed? Thanks.