viewport scrolling: prevent retrieving all html rows twice