IE9 +:在处理DOM时性能较差 [英] IE9+: poor performance while dealing with DOM
本文介绍了IE9 +:在处理DOM时性能较差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
与其他浏览器相比,IE9执行).我好奇;它会以什么方式影响下一代富应用程序的执行速度?除了此迭代测试之外,是否还有任何相关的真实世界webapp示例,可以在其中观察性能差异?另外,这是他们的JS引擎还是Layout引擎的问题?
Compared to other browsers, IE9 executes this script (for dynamic manipulation of DOM) with a very long running time. I am curious; in what ways would it impact the execution speed of next-generation rich applications? Other than this iterative test, is there any related real world webapp example, where we can observe the difference in performance? Also, is it the problem with their JS engine or the Layout engine?
此问题已在IE10 RTM中解决.
The issue is resolved in IE10 RTM.
推荐答案
使用:
function testAppendFrag(div) {
var docFrag=document.createDocumentFragment(),i=count;
while(i--){
docFrag.appendChild(document.createElement("div"));
}
div.appendChild(docFrag.cloneNode(true));
}
这篇关于IE9 +:在处理DOM时性能较差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文