Javascript ComputedStyle:getPropertyValue()在IE中速度很慢。有解决办法吗?

use*_*003 5 javascript internet-explorer-9

我的JavaScript在网页的DOM中运行,并为每个节点获取计算出的样式:

var computedStyle =  window.getComputedStyle(element);
Run Code Online (Sandbox Code Playgroud)

然后使用它来获取大约20个值,例如:

c_style = computedStyle.getPropertyValue("height");
Run Code Online (Sandbox Code Playgroud)

事实证明,这在IE中非常缓慢(尝试IE11和IE9)。

如果我只是得到getComputedStyle样式,则页面的时间为0.3秒(脚本还执行其他操作)。

如果我添加getPropertyValue,则该页面的时间将增加到3整秒。但是,在Firefox中,脚本也在查找这些值几乎没有区别。

在IE(9+)中还有另一种方法吗?还是出了什么问题?

编辑:其他人是否有成功(=良好的性能)从IE中获得许多样式?