|
|
|
|
|
by tyingq
3713 days ago
|
|
>>JavaScript, unlike a lot of other languages, never blocks I think that's a little strong. It's more like "The group controlling Javascript has mostly tried to discourage introduction of things that block". You can, for example, do a blocking XMLHttpRequest. It's deprecated, but possible. https://jsfiddle.net/923d5sda/ |
|
A 10.000 repetitions for look while block the whole interpreter for its duration.
Any JSON parsing does the same.
Processing strings.
Doing math work.
...