Given:
var
isIE = $.browser.msie && !$.support.opacity,
isIE6 = isIE && $.browser.version < 7;
Which would be faster:
if(isIE6){ doSomething(); }
else { doSomethingElse(); }
OR
if(!isIE6){ doSomethingElse(); }
else { doSomething(); }
Are they exactly the same in terms of speed?
Given this test on a 1,000,000 iteration loop, no difference.
Tested in Firefox, Safari & IE8.
Other processes running on the system, performing the test several times in each browser returned the same general variation in milliseconds irrespective of
!.