I have a page that displays messages and I want it to work just like Facebook, but without the lazy loader. Messages are displayed in chronological order, most recent last.<
Here's a simple trick that worked for me:
// divWithTheScroll.prependElement... divWithTheScroll.scrollTop += newlyPrependedElement.scrollHeight;