Slow response when the HTML table is big

前端 未结 6 1916
情深已故
情深已故 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 17:50

    Also, as in any HTML element in chrome, adding "transform: rotateX(0deg);" to the table element forces hardware acceleration to kick in, speeding up scrolling significantly (if that's the issue).

提交回复
热议问题