filter() performance IE 7&9 vs. IE 8 ?
Im having a hard time understanding why my code is so much slower in IE8 than in IE7 and IE9. Are there any IE8 specific behavior i've missed or why would my code result in up to 10 times slower execution in IE8.
IE7 executes in 300ms, IE9 in a few ms more and IE7 in about 3000ms :( Any ideas?
-
$('.item').filter(function(i) {
var $e = $(this);
return (
!($e.find('.form-value:visible').length) &&
!$e.find('.element_header').length)
);
}).remove();