lazy loading checks visibility on window resize