Ticket #11351 (closed bug: cantfix)
jQuery Animate - Complete Function - Fires before animation render complete
|Reported by:||James <coursevector@…>||Owned by:||gnarf|
The Bug: Running an animation calls it's complete function before the browser completes rendering the animation IF the code called during the complete is slow and the animation is fast.
When running the test below you will see the green slide left showing the blue. But because the complete is called before the animation is done and because the complete calls a slow function the animation hangs just short of the left edge. Eventually it will jump to the edge once the slow function is complete.
It is very important that you test with a slow function for the browser you are testing with. I am using Chrome 17 on a MacBook Air and using 20,000 console.log calls to simulate slow code in the complete function. In Safari 5 I need to use 60,000 log calls. In Firefox only 10,000 are needed.
Let me know if you need more details.
- Owner set to gnarf
- Priority changed from undecided to low
- Status changed from new to assigned
- Component changed from unfiled to effects
- Milestone changed from None to 1.8
- Status changed from assigned to closed
- Resolution set to cantfix