Tag Archives: placeholder

用 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