开发者

IE8: Common performance glitches with Javascript?

开发者 https://www.devze.com 2023-01-27 04:38 出处:网络
IE8 and Javascript in general: what are the common problems causing performance glitches on IE8? Does anybody know of a collection of issues and things to avoid when developing scripts for IE8?

IE8 and Javascript in general: what are the common problems causing performance glitches on IE8? Does anybody know of a collection of issues and things to avoid when developing scripts for IE8? It is very easy to produce script that runs in 200ms on Firefox and 10 seconds on IE8, so I'm wondering if there's a comprehensive list of dos and donts somewhere?

Please note that I'm not interested in answers like "use JQuery" -开发者_StackOverflow中文版 I am interested in the issues.

René


Have a look at this video: http://net.tutsplus.com/tutorials/javascript-ajax/extreme-javascript-performance/ - the guy offers some benchmarks that might give you an idea regarding what's slow and in which browsers (surprisingly, Firefox's JS engine turned out damn slow).


Take a look at this code:

$('#tasks').dataTable({
                "bJQueryUI": true,
                "bRetrieve": true,
                "bPaginate": false,
                "bScrollInfinite": true,
                "bScrollCollapse": true,
                "sScrollY": "450px"
});

Where is says 450px, i had previously put a "," after it. In IE this errored and it took me ages to find that damn comma!

0

精彩评论

暂无评论...
验证码 换一张
取 消