XHR and its related features have been commonly used in recent decades. Since then, more and more Web sites now represent as Web Apps. To improve user experience with progressive loading, many Apps use skeleton screen to ease the feelings of unknown, rather than serve a blank white screen while waiting.
It’s the gray shapes shown while the data is loading from the server instead of displaying a classical spinner. —-^What is a skeleton screen 💀?
Look at this comparison, UI with skeleton seems to have less reflow which I think is more comforting.
This image referred from ^What is a skeleton screen 💀?
Check https://freefrontend.com/css-skeleton-loadings/
Just a different type of image representation depends on what your designers gave. Used as background image or source of an image element.
The Structure of a SVG file is very similar to a HTML file because they both are XML-based file format. Also, a SVG file can be rendered directyly in a HTML without using <img>
or background-image
CSS.
1 |
|
1 | <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"> |
Full code in https://github.com/LynanBreeze/web-skeleton-generator
rect
node to SVG File when DOM node is a leaf node or it’s has background colorrect
nodes in a <svg>
tagVisualized process looks like this ⬇️: