Created
June 13, 2016 19:59
-
-
Save thysultan/745d9f54ed3d970075a6950cd983eeb6 to your computer and use it in GitHub Desktop.
try to push to the end of the event stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requestAnimationFrame(function () { | |
setTimeout(function () { | |
fn() | |
}, 0) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment