Improve infinite scroll cross-browser compatibility