众所周知,互联网探索者 Java印引擎在性能方面落在后面,特别是同 Chrome、Sato(Webkit)或Mozilla(Mozilla)相比,互联网探索者8台和8台以上。
在开发具有重大javascript功能的网络应用时,国际电子计算中心的业绩比其他系统差得多。
是否有任何做法可以帮助改进你的javascript代码,这样,良好表演者(非IE)与不良表演者(IE)之间的鸿沟就不是这么大?
众所周知,互联网探索者 Java印引擎在性能方面落在后面,特别是同 Chrome、Sato(Webkit)或Mozilla(Mozilla)相比,互联网探索者8台和8台以上。
在开发具有重大javascript功能的网络应用时,国际电子计算中心的业绩比其他系统差得多。
是否有任何做法可以帮助改进你的javascript代码,这样,良好表演者(非IE)与不良表演者(IE)之间的鸿沟就不是这么大?
Another couple of common solutions:
www.un.org/Depts/DGACM/index_spanish.htm 经常使用DOM Nodes的海滩不能再在同一功能中重新计算。 例如,而不是
$(id).parentNode.something();
$(id).parentNode.somethingOther();
用途
var e = $(id).parentNode;
e.something();
e.somethingOther();
www.un.org/Depts/DGACM/index_spanish.htm 海滩经常从外部使用的物体。 例如,而不是
if (this.options.type == a ) {
// ...
} else if (this.options.type == b ) {
// ...
}
用途
var type = this.options.type;
if (type == a ) {
// ...
} else if (type == b ) {
// ...
}
这也将对排雷前后的法典规模产生积极影响。
优化业绩的一个共同途径是消除 lo体的最大价值。
因此,我要说,你必须通过一个叫做“阿雷拉”的阵列来加以修复。 你可以优化以下发言:
var sampleArray = [3, 10, 12, 5, 9];
for(var i = 0; i < sampleArray.length; i++){
var currentElement = sampleArray[i];
// so something wit element
}
修改如下:
for(var i = 0, max = sampleArray.length; i < max; i++){
var currentElement = sampleArray[i];
// so something wit element
}
这表明所有浏览器的绩效都大幅提高。 具体而言,IE7通过这一模式(从)证明业绩提高190倍。 高报关
I think reasonable solution for it is Google Chrome Frame
This just allow use Chrome Frame in IE and don t use it in non-IE browsers.
JavaScript performance and development tools for IE:
Microsoft Support: Internet Explorer Performance Article - http://support.microsoft.com/kb/982891
a. One way to increase your performance in older versions of IE would be to use RAW JavaScript to create DOM elements instead of jQuery.
例如:
(function () {
var rosterContainer = document.getElementByID("roster");
var memberContainer = document.createElement("div");
$(memberContainer).addClass("one_fourth alpha hentry")
.attr("id", mName.replace(/s+/g," "))
.appendTo($(rosterContainer));
})();
b) 您还可以重新确定电子计算机浏览器的用户经验。
例——我的现场使用重型联合材料/频率粉碎片来装载大背景,并用甲壳体显示这些背景。 但对于我的独立实体用户来说,我没有装上共同提交书或原始图象或背景图象,只是显示一个静态的“ b”。
you can use loaders like yepnope.js to load optimized JS for IE
c) • 确保贵网站“ID”充分运行。 这永远是一个良好的开端。
How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.
I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...
Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...
Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...
I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...
Is it possible for someone to give me a few pointers on how to display a multidimensional array in the form of a bar graph? The array is multidimensional, with three elements in each part - and the ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.