DEV Community

Discussion on: JPEG, GIF, PNG OR SVG - Which should You use?

Collapse
 
belhassen07 profile image
Belhassen Chelbi

I really like SVG , they can be easily responsive, not just because "scalable" is in the name, they're good for performance and accessibility and when mixing it with JavaScript , we can do a lot of amazing things, I mean look at the projects with d3.js. I like PNG for the transparency wen I need it, and jpeg when I need to make the website faster , of course without loosing a remarkable losss of quality.
This is a cool article Sarah ,as always ♥

Collapse
 
sarah_chima profile image
Sarah Chima

Thanks for sharing this. Others can learn from the way you use it. Thank you. :)

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!)