Opened 13 years ago
Closed 13 years ago
#5630 closed bug (invalid)
window bind resize ie7 windows CPU
Reported by: | tsukasa1989 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | unfiled | Version: | 1.4a1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello,
The following code will crash your CPU if you use IE7 or older.
$(window).bind('resize', function() {
$("html, body, .wrapper").animate({height : $(window).height() + "px"}, 0);
});
See the demo. Resize your screen and it wil crash. Sometimes you don't even have to resize to let it crash.
Greetings.
Attachments (1)
Change History (3)
Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
IE automatically fires a resize event on elements that have their dimensions changed. You are creating a loop because your animation is causing IE to fire a resize event.
Note: See
TracTickets for help on using
tickets.
Resize screen and CPU crash (100%)