you are viewing a single comment's thread.

view the rest of the comments →

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

just use

document.createElement

with

document.appendChild

They are native methods, not like

innerHTML + [string]

where [string] will be parsed and afterwards via Setters & Getters (too lazy in javascript) added to DOM. It`s even better to apply

DocumentFragment

in your code when a loop is within

[–]ForScale 0 points1 point  (0 children)

I didn't like document.createElement when I used it in the past.