Saturday, September 16th, 2006

Microsoft JavaScript Perf. Tips

Category: IE, JavaScript

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

Posted by Ben Galbraith at 10:56 am
7 Comments

+++--
3.4 rating from 32 votes

7 Comments »

Comments feed TrackBack URI

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

Comment by Kris Zyp — September 16, 2006

Interesting Finds: September 16, 2006

Trackback by Jason Haley — September 16, 2006

Why ironically? I see no reason they should be mutually exclusive.

Comment by Daniel Luz — September 16, 2006

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

Comment by Valery Silaev — September 17, 2006

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.

Comment by Andrea Giamamrchi — September 18, 2006

[…] Microsoft JavaScript Perf. Tips JS performance tips from MS. Dave what do you think? (tags: javascript performance) […]

Pingback by Andre’s Blog » Blog Archive » links for 2006-09-18 — October 22, 2006

good some of tricks are very good……….

Comment by lokesh — September 20, 2007

Leave a comment

You must be logged in to post a comment.