Ask HN: Why don't websites use svg?
I really wonder why almost all websites use raster images like png, jpg instead of svg format. Is it a performance issue or anything else? I'm starting a project fully working with vector images and planning as much as flexible it can be.
15 comments
[ 1010 ms ] story [ 1336 ms ] threadIn addition, the process of designing for the web is centered around bitmaps because full support has been lacking and because advertisers (still the primary income source on the web) want maximum compatibility.
Take a look at [Raphaël.js](http://raphaeljs.com/), which conveniently wraps up SVG and VML into one library. There are some minor quirks when dealing with IE, but nothing that can't be worked around. I've used SVG is most of the commercial work I've been doing for the past 2 years with great success.
On the performance side though, there is a noticeable performance hit on mobile browsers. Also, Google made the odd decision to leave SVG out of it's mobile webkit implementation in earlier version of Android. And because Android adoption rates aren't great, it has been an issue on some projects. However, it's possible to fill that hole using the canvas tag.
I personally think it's SVG's time to shine. HD graphics present a huge problem which SVG goes some way towards solving, and it's a great replacement for some of the stuff that was previously the sole domain of Flash.
Opera Mobile and Mobile Firefox do support SVG, even on old Android, by the way. (Disclaimer: I work for Opera.)