DEV Community

SVG sprites vs CSS background image for multiple instances of icons

Eka on October 11, 2018

Hi friends! I am working on a website that requires many icons, and I am looking into using SVG sprite for the icons. Some large websites, such as...
Collapse
 
shanamaid profile image
Jingyi Zeng

You can use archer-svgs to load svg async and cache it in localStorage, when you reuse svg without http request!Remove svgs from your js-bunilde and Thin your js-bundle forever!(eg: Dont reload 100kb svg bundle only for 1kb svg update!)

Collapse
 
ekafyi profile image
Eka