What's the most efficient way to manage large datasets with Javascript/jQuery in IE?

后端 未结 4 2219
一个人的身影
一个人的身影 2021-02-10 08:05

I have a search that returns JSON, which I then transform into a HTML table in Javascript. It repeatedly calls the jQuery.append() method, once for each row. I have a modern m

4条回答
  •  粉色の甜心
    2021-02-10 08:06

    I've done this before. It's all the DOM manipulation that slows things down because of the repaint/reflow process firing after each addition.

    Build it as a string on the client, insert the string into the DOM using .html().

    This has worked quite successfully for me, even on IE6.

提交回复
热议问题