Saturday, September 16th, 2006
Microsoft JavaScript Perf. Tips
Peter Gurevich and Justin Rogers from Microsoft’s IE team recently wrote a blog entitled “IE + JavaScript Performance Recommendations - Part 1“. It’s an interesting read, containing such tips as:
- Precede your variables with var if you are truly defining them in the current scope
- Cache Variables Whenever Possible
- Cache Function Pointers at all costs
- Cache Function Pointers at all costs












It would seem some of the users tests in that blog showed that some of techniques only have mixed performance improvement capabilities. Ironically the suggestions are really good suggestions for writing JavaScript that can be well compressed with JS compression tools.
Kris
Interesting Finds: September 16, 2006
Why ironically? I see no reason they should be mutually exclusive.
The most importnat tip is missing: never change page content with DOM API, use innerHTML property or insertAdjusentHtml method instead. DOM API in Internet Explorer up to version 6.0 is terribly slow.
Comparing to other tips, this one may boost performance of your Ajax applications in hundreds times.
VS
then IE7 will be faster because developers will have to use their optimization ? … he, he, it’s Microsoft !!!
However, there are a lot of un-features that should be present, starting from ajax.responseText properties (length) when ajax.readyState is === 3 (recieving data), to have a real preloader with IE7 as is for FireFox 1.0, Opera 8, KDE 3.4 or other browsers.
This is a start point, at least for me, for an Ajax focused browser.
[...] Microsoft JavaScript Perf. Tips JS performance tips from MS. Dave what do you think? (tags: javascript performance) [...]
good some of tricks are very good……….