JavaScript Optimizations
Posted: Tue Apr 11, 2006 10:30 am
Hiya!
Often lately when I write JS that does something DHTML-ish (i.e. something that animates) I find it runs very slowly on what I would call an average PC (1.5GHz CPU, 512MB RAM). Even slower if testing it in IE.
Does anyone know any good links/resources that deal specifically with optimizing JavaScript code that does fancy things like animations?
I also occassionally find IE hanging before deciding to process JS even on fairly basic DHTML pages (using DOM.... does IE recurse the whole DOM tree before executing functions etc or something?).
Cheers,
d11
Often lately when I write JS that does something DHTML-ish (i.e. something that animates) I find it runs very slowly on what I would call an average PC (1.5GHz CPU, 512MB RAM). Even slower if testing it in IE.
Does anyone know any good links/resources that deal specifically with optimizing JavaScript code that does fancy things like animations?
I also occassionally find IE hanging before deciding to process JS even on fairly basic DHTML pages (using DOM.... does IE recurse the whole DOM tree before executing functions etc or something?).
Cheers,
d11