3 ms·
Not sure about current browsers, but a few years ago setting innerHTML was significantly faster than the other DOM APIs. But in any event SVG path strings (and
by jacobolus 8y ago
Not sure about current browsers, but a few years ago setting innerHTML was significantly faster than the other DOM APIs.
But in any event SVG path strings (and other element attributes) are inherently strings, there’s nothing you can do to get around that.