3 ms·
It would be cool to optionally integrate SVG placeholders, a-la: https://medium.com/@jmperezperez/using-svg-as-placeholders-more-image-loading-techniques-bed1b8
by matthberg 8y ago
It would be cool to optionally integrate SVG placeholders, a-la: https://medium.com/@jmperezperez/using-svg-as-placeholders-more-image-loading-techniques-bed1b810ab2c https://medium.com/@jmperezperez/using-svg-as-placeholders-m...
(previously discussed: https://news.ycombinator.com/item?id=15696596 https://news.ycombinator.com/item?id=15696596)
- crooked-v 8y agoThat seems like it would require a compile step with a file loader, which is generally doable but means you need handling for (for example) Webpack vs. Parcel vs. whatever else.
- stereobooster 8y agoIt supports SVG placeholders. SVGs need to be converted to data URIs, like `data:image/svg+xml,%3csvg xmlns='...`, and it works the same as LQIP. You can use https://github.com/stereobooster/sqip.macro https://github.com/stereobooster/sqip.macro to generate those