How to solve the problem that the website is loaded slowly because of the picture too much?

Source: Internet
Author: User

Picture too large to load slowly? Rather than a picture that's too slow to load?

The first thing to do is to compress as much as possible to see how much users endure. JPG can be compressed in many ways, PNG recommends using Tinypng

Tool (But the body picture, obviously to choose JPG format).

And then

1, less "care" user experience of the easy way:

The images are saved incrementally, and the load becomes clearer instead of loading from top to bottom, then placing them in the CDN, setting up the cache, and so on.

2, compare the "care" user experience of high-end solutions:

Determine the user's device (mainly used in mobile), network, etc., loading different quality pictures (such as high-end iPhone WiFi case, you can load double high-definition graphics, etc., under the cellular network, loading a single-fold or lossy compression).

Or the first load of low-quality pictures, so that viewers can see, and then in the background load more HD, and so loaded, the viewer is still watching, insert replacement.

or load the low-quality small picture list first, then let the user click, trigger a similar fancybox effect, pop-up window appears large picture.

Or take advantage of resource preloading (three HTML5 Uncommon features introduction) when the user is not open, start loading.

How to solve the problem that the website is loaded slowly because of the picture too much?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.