Solve the problem of too many images to be loaded on a single page. the slow loading of a single image is too large. I searched the internet and said that lazyload delayed loading, and I tried it well. Images are automatically loaded only in the visible area of the browser. However, if a full screen image is loaded in the browsing area, it is still very slow. I mean the width and size of a single image are very large. Is there a good solution, for example, loading a large image in the red area, it will be slow & nbsp; solve the problem of loading too many images on a single page.
Rt. I searched the internet and said lazyload delayed loading. the test worked well. Images are automatically loaded only in the visible area of the browser. However, if a full screen image is loaded in the browsing area, it is still very slow. I mean the width and size of a single image are very large. Is there a good solution?
For example, loading a large image in the red area will be slow.
Share: More
------ Solution --------------------
Even if a full screen image is loaded, you still need to process the image, such as compressing and initializing the image. you can cache the image through js, and the next time you open the image, it will be faster.
------ Solution --------------------
It is best to optimize the image at the front end/in the early stage, for example, after processing the image in ps = Save the format used by the web, jpg, png, or gif, whether the image is "continuous" or "optimized" is selected or tested based on your own situation, or you can use php to generate a thumbnail for display at the front end, so that the image can be loaded quickly, then, if you want to view the image, click the thumbnail to view the source image ,,,