Fix page loading with autoload on scroll