Loading problem of mobile terminal

in the case of slow loading of the page, the page has not yet been loaded, and the pages of some websites have been processed as shown in the following figure, and the rough outline of the content of the article has come out. Excuse me, what is this operation, and how does the front end realize this function? If you would like to know the answer, thank you

Mar.10,2021

keywords skeleton screen , you can search for the specific implementation method


this is a skeleton screen prompt in loading. Compared with a circle that is turning all the time, the prompt in loading can give users a more intuitive sense of the structure and layout of the content. After the data is loaded, it will be replaced with real text and pictures. The transition will also be more peaceful.

personally, I think this design is relatively novel and more suitable for the display of list-type slightly complex structures. According to my observation, many websites and app use this method, such as: ele.me H5 end, QuoraAPP, Alipay APP and so on.

for the front end, the easiest way to implement this function is to fill it with div according to the structure you want, plus the background color and so on.

answered a similar question before, and the code is now missing.

I've also been thinking about writing one of these plug-ins in canvas or svg to do this kind of load hint. After it has been written, I can recommend you to try it again.


Bone frame, ele.me. That's it


Skeleton diagram means preloading

scope of application: request data through the interface in front and back end separation mode, due to the delay caused by the request, in order to improve the user experience

for pages that require seo, we output them through the back-end template engine, so it is not very suitable for preloading

.

the above is my personal opinion, welcome to correct

Menu