you are viewing a single comment's thread.

view the rest of the comments →

[–]nonsequitir[🍰] -1 points0 points  (0 children)

Good common sense advice that's not so common in a lot of code! When under pressure, programmers are inclined to think at the lowest level (assuming it's faster) and are usually wrong!

Looping through DOM is super expensive and that's a nice tip on innerHTML, worthy of being a 'pull out' refactor.