3 ms·
Wouldnt worry about that. No matter which method you use its the actual DOM part showing the result that is slow. I have a thing that builds >4K row HTML table
by rasz 7y ago
Wouldnt worry about that. No matter which method you use its the actual DOM part showing the result that is slow. I have a thing that builds >4K row HTML table from localstorage data one line at a time, it takes 200-300ms to build (timed with performance.now()) depending on if I cloneNode/appendChild/build a string and shove it into innerHTML, but then about 2 seconds for the browser to actually update the DOM and show user the actual Table.