I am using JavaScript to generate a HTML table of 4 columns, but when the table became very large (e.g. more than 1000 rows), the user could face lag between their interacti
if your table has regular columns (without colspan and/or rowspan) you can improve a bit the rendering time applying the table-layout:fixed
property:
MDN: https://developer.mozilla.org/en/CSS/table-layout
Under the "fixed" layout method, the entire table can be rendered once the first table row has been downloaded and analyzed. This can speed up rendering time over the "automatic" layout method, but subsequent cell content may not fit in the column widths provided.