Bug Tracker

Modify

Ticket #5630 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

window bind resize ie7 windows CPU

Reported by: tsukasa1989 Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.4a1
Keywords: Cc:
Blocking: Blocked by:

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

demo.html Download (703 bytes) - added by tsukasa1989 3 years ago.
Resize screen and CPU crash (100%)

Change History

Changed 3 years ago by tsukasa1989

Resize screen and CPU crash (100%)

comment:1 Changed 3 years ago by tsukasa1989

Can anyone help me with this bug?

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.