How to increase the speed of creating dynamic HTML tables in Firefox?

I am making a small table (maybe 10-12 cells) that is constantly being updated. I want it to be fast.

Chrome is very fast, but I'm having problems with Firefox / IE. Any suggestions for quick rendering?

+3
source share
4 answers

Run the full table right away (create the full HTML for the table and paste it into the DOM, do not insert cells / rows when passing through the data). In addition, tagging for columns should help (even if you specified a width for each column).

+5
source

, Chrome Safari Dev-Tools (Ctrl-Shift-I Windows Cmd-Alt-I Mac). . . , javascript DOM, Layout/Paint.

dev-channel, .

, FireBug, - Firefox, , .

+1

thead/tfooter. tbody, .

<table>
<thead></thead>
<tfoot></tfoot>
<tbody></tbody>
</table>

, , , , .

0

Source: https://habr.com/ru/post/1727199/


All Articles