The optimization works for all common browsers, such as FireFox, IE, etc.
Loops through 10000
divelements in different ways. The time required for each loop is presented below in milliseconds.
Loop: for (var i=0; i
for (var i=0; divs[i]; i++)
for (var i=0, il=divs.length; i
for duffs method