Created
October 10, 2017 17:00
-
-
Save LeonardoCiaccio/a3ff7e1ad2f2deaa6c0e882e3aee56bc to your computer and use it in GitHub Desktop.
Prevenire un blocco totale della pagina in un loop infinito, somiglia al 'DoEvents' in VBA
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
var i = 0; | |
(function doSort() { | |
// update progress | |
// do stuff | |
i++; | |
if (i < rows) { | |
setTimeout(doSort, 0); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment