3 ms·
SVG is probably better than Canvas for an interactive UI with lots of elements that change. SVG has its own DOM, so you can update elements and they will redra
by mbrubeck 17y ago
SVG is probably better than Canvas for an interactive UI with lots of elements that change. SVG has its own DOM, so you can update elements and they will redraw automatically (as opposed to Canvas where you are responsible for rendering a whole new bitmap each time anything changes). Depending on your use cases, something like Primer might simplify things:
http://github.com/mojombo/primer http://github.com/mojombo/primer