Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Too much recursion" with jQuery 3, Firefox, and animate's complete callback. #3434
Thing: I have a loading bar that animates from left-to-right, then resets. Note that it uses the complete callback (from animate) to fire itself again.
Note that it works if I wrap the "reset" call in a setTimeout, as in:
Speculation: Probably something to do with the requestAnimationFrame changes in jQuery 3? (If you leave the window focused, the recursion error does not appear).
Does NOT happen in Chrome/IE. Also, doesn't happen with jQuery 2.1.3.