InnerHTML is still faster than DOM Methods

I’ve seen these tests done again and again, the results are always the same. Using innerHTML and just dumping a string of HTML into the page is way faster than properly creating all the elements and attaching them as children and inserting it into the document. Personally I’m grateful, because actually using the DOM methods requires writing a lot of obnoxious code.

DOM vs InnerHTML

Comments are closed.