用 SVG 當圖片的 Placeholder

看到一個有趣但是不實用的東西 XD:「How to use SVG as a Placeholder, and Other Image Loading Techniques」。

大小大約是這樣:

Actually, the code for the SVG with 10 shapes is really small, around 1030 bytes, which goes down to ~640 bytes when passing the output through SVGO.

The images generated with 100 shapes are larger, as expected, weighting ~5kB after SVGO (8kB before).

這大小有點 heavy... 算是有趣的嘗試 :o

Leave a Reply

Your email address will not be published. Required fields are marked *