-
A while back, I made an open source package called simple-svg-placeholder. It’s only 36 lines long. The reason I made it was because similar libraries had a lot of features I didn't need. So I'm torn on whether or not to add a feature to it… github.com/cloudfour/simple-svg-placeholder
-
There's a placeholder image service (placeholders.dev) that uses the library, and one of their users wondered if text could wrap. Leading a developer to ask if this would be possible using the foreignObject element.
-
But there are caveats: This technique does not work in IE. Adding it as an option also increases the size of the source from 36 lines to 59, and the resultant SVGs from 300+ bytes to 550+.
-
So now I'm torn. 59 lines and 550+ bytes are still quite small, but is the use case prevalent enough to justify making simple SVG placeholders slightly more complicated?

