3 ms·
Please use insertAdjacentHTML instead of innerHTML
MDN Docs page: https://developer.mozilla.org/en/DOM/Element.insertAdjacentHTML
But more importantly, the benchmark: http://jsperf.com/insertadjacenthtml
- whiterabbit 15y agoYou meant to write, "use appendChild()," right?