IE Binding Slow
IE Binding Slow
jQuery is binding very slow when we have over 500 to 1000+ elements.
It can take as much as 15 to 30 seconds and sometimes IE will issue a
popup error saying "cannot connect" to the URL. When you press OK, a
PAGE NOT FOUND is issued.
This is not seen with FireFox where the binding can be at .75 to 1.2
secs.
I was using cluetip here, but I was able to isolate it down to just:
var $list = $('a.basic');
$list.hover(
function() { $(this).css({cursor: 'wait'});},
function() { $(this).css({cursor: 'default'});}
);
to see if simply binding events is bogging it down.
If I add the onMouseOver and OnMouseOut events to the elements
directly, such as:
<a href="........>
onMouseOver="doHover(this, 1);"
onMouseOut="doHover(this, 0);">
IE loads in 2000+ elements less than a 1 second and I call doHover()
without a problem. So the issue is clearly jQuery dynamic binding of
large amounts of elements under IE.
Is this a known issue? Whats the solution here?
Thanks
--
HLS