Bug Tracker

Modify

Ticket #9825 (closed bug: duplicate)

Opened 23 months ago

Last modified 23 months ago

animate callback function isn't executed when tab is inactive (chrome & FF5)

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: effects Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

I noticed that in Firefox 5 and Chrome a callback function to animate() isn't executed if the tab isn't active. But when switched back to the tab the queue of unexecuted callbacks is executed straight away without any delay in between them. Safari, FF3.6, IE8 and IE9 don't show this bug.

function runMe(){

$('#something').animate({key:val},200, function(){
$('body').append('<p>hello</p>');
});

setTimeout(runMe,1000);
}

runMe();

In the above example it would straight away append 20x "hello"s to the body if switched to another browser-tab for 20s.

Change History

comment:1 Changed 23 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to effects

comment:2 Changed 23 months ago by timmywil

Duplicate of #9381.

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.