Ways to increase performance when set big value to innerHTML

后端 未结 7 1867
无人及你
无人及你 2020-12-05 08:25

I\'m trying to set a huge (200K) response to innerHTML of a node. The goal is to get better time than 2.7 sec in Internet Explorer 6.

Any ideas?

7条回答
  •  佛祖请我去吃肉
    2020-12-05 08:57

    With a large HTML payload you run the risk of the "Operation Aborted" error in IE 6. Take some time and review the following StackOverflow questions, as the error arises from updating the DOM using innerHTML and to date MS does not have a complete fix in place:

    Why Does Asp.net cause the operation aborted error in ie7?

    How To Overcome IE Bug When Dynamically Attaching DIV To Body From Script?

提交回复
热议问题