Last active
October 22, 2022 14:41
-
-
Save danwalmsley/7bfe8b59bf96a6143322d8641572d14c to your computer and use it in GitHub Desktop.
repro chrome requestAnimationFrame issue
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script> | |
var request = window.requestAnimationFrame(onRender); | |
var frame = 0; | |
function onRender (){ | |
console.log("paint"); | |
document.body.textContent = ++frame; | |
request = window.requestAnimationFrame(onRender); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment