Slow response when the HTML table is big

前端 未结 6 1955
情深已故
情深已故 2020-12-14 17:29

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

6条回答
  •  盖世英雄少女心
    2020-12-14 18:15

    If you are working with very large tables (say, 5000 or even 500,000 rows), I recommend a tiny plugin called Clusterize. You don't even need jQuery to use it. The idea is similar to lazy loading images, and it works extremely well in practice.

提交回复
热议问题