On the difference between fast and slow Internet speeds

With the popularity of the Internet, users pay more and more attention to the speed of response. The faster the website, the higher the user stickiness and conversion rate.
To put it simply, it means increasing the speed! There are many factors that affect website speed, such as………………….

Being serious is not my style, please watch my performance below Origin of the idea: The initial idea was to use pure CSS to implement it. Base64-encode the base image and place it directly on the background-image, so that the background image can be loaded together with the web page.

Step one: First, process the material pictures prepared in advance and remove the swimsuit and skirt Step two: Create a new HTML file Step three:

Finish. .
Then I discovered a problem. Since the size of my basemap file reached 12 MB, the encoded string was too large, which caused the webpage to load very slowly and stuck, which was really no user experience. Moreover, the base map loaded in this way will be displayed suddenly, which is too abrupt and the effect is not good.

Then use: Implemented with css+JavaScript, the background image is directly loaded by background-image, which can achieve the effect of gradual display. After the base image is loaded, the accompanying image is dynamically inserted by js.

window.onload = function(){ var img=new Image(); img.src=‘Nude.jpg’; if(img.width==0){ alert(‘Image loading failed’) }else{ document.getElementById(“Swimsuit”).style.backgroundImage=“url(Swimsuit.png)”; document.getElementById(“Swimming Skirt”).style.backgroundImage=“url(Swimming Skirt.png)”; } }

I can’t help but sigh, what a broken network, it’s so slow that it can’t even load pictures of people and their clothes.