Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When used as advertised, SVG is slow. But there's a way to use it that's actually much faster than Canvas for some purposes: batch up everything you want to render into a single blob of SVG text and then splat it on to the screen in one go using innerHTML. This is faster than drawing the same thing with a series of Canvas API calls and far faster than making incremental modifications to the SVG DOM.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: