Created
January 17, 2021 11:44
-
-
Save Temirtator/0a6f1355560b8f616596ca029274d1d1 to your computer and use it in GitHub Desktop.
Rendering UI, problem with event loop.
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
<div id="progress"></div> | |
<script> | |
function count() { | |
for (let i = 0; i < 1e6; i++) { | |
i++; | |
progress.innerHTML = i; | |
} | |
} | |
count(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment