A compendium of JavaScript optimization techniques, a place where one can turn to find optimization examples, some well known to JavaScript Programmers, and some not so well known. Two, it is also a source of performance information with regard to how these techniques perform in comparison to each other. Lastly, it is intended to address the issue of which programming optimization techniques work as intended in the interpreted environment in which JavaScript code runs.
Some real common-sense items that are spelled out nicely (Limit Work Inside Loops) and some that I never thought of (Reverse Loop Counting). Cool stuff.
Tagged As Javascript
Comments are Open (3)
Posted at 01:47 PM
Comments
Dave
A lot of good Javascript optimisation techniques (including Duff's device) can be found in the very excellent book "Speed up your site" by Andrew King. It is one of the most enlightening books on web development I have read.
Posted by: Dave | January 17, 2005 04:22 PM
Geoff
Looks pretty good as far as a general reference of what is fast and slow when using JS, but that page looks like it's a few years old. They are comparing speeds using IE 5.5 and Netscape 4!
Someone should make an updated version using current browsers.
Posted by: Geoff | January 18, 2005 03:06 PM
Tony
I would be interested to see if the test changes much in terms of execution. Particularly with Moz. and Safari.
I still think that the practices are sound though.
Posted by: Tony
|
January 18, 2005 03:20 PM