Lazy loading of images and files compression