Poor Performance with tables in Internet Explorer 8 Standards Mode

后端 未结 6 534
鱼传尺愫
鱼传尺愫 2021-02-05 09:53

When using a table with a reasonable amount of data - 100 rows by 50 columns - I notice that IE8 performance degrades unacceptably (only in IE8 standards rendering mode). The CP

6条回答
  •  日久生厌
    2021-02-05 10:54

    Stick with event-delegation and "table-layout:fixed;" and then try setting visibility:hidden on the rows that are not being displayed on the screen. When they are scrolled into view visibility:auto; them.

    Or better yet: detach the rows from the DOM when not in view and use a "buffer" row to maintain the scroll bar's height and scroll position (I recommend using jQuery's detach() method).

提交回复
热议问题