Skip to main content

Bug Tracker

Side navigation

#5630 closed bug (invalid)

Opened December 10, 2009 12:47PM UTC

Closed June 13, 2010 07:09PM UTC

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)
  • demo.html (0.7 KB) - added by tsukasa1989 December 10, 2009 12:48PM UTC.

    Resize screen and CPU crash (100%)

Change History (2)

Changed December 21, 2009 09:25AM UTC by tsukasa1989 comment:1

Can anyone help me with this bug?

Changed June 13, 2010 07:09PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

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.