Last active
March 31, 2017 08:58
-
-
Save misaka42/df81af69eafa42eb11816d8e72afc8b0 to your computer and use it in GitHub Desktop.
browser nextTick
This file contains 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
// try it in your browser | |
(function() { | |
requestAnimationFrame(() => console.log('requestAnimationFrame')) | |
setTimeout(() => console.log('setTimeout 10'), 10); | |
setTimeout(() => console.log('setTimeout 1'), 1); | |
setTimeout(() => console.log('setTimeout 0'), 0); | |
Promise.resolve().then(() => console.log('then')); | |
console.log('content end'); | |
return 'fn end'; | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment