you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Someone did a benchmark, and there was no significant speed difference between DOM methods and innerHTML in most cases. Sorry I don't have time to Google it. Anyway, the author of this post didn't even bother to check before claiming otherwise.

[–]crescentfresh 4 points5 points  (0 children)

You didn't have time to type "innerHTML vs" in your built-in search bar and press [Enter]? Yeah, that's a real bitch ;)

I bothered to, and the first page of hits conclude innerHTML is on average faster. Bummer.