3 ms·
> However, in the browser resources (such as scripts) will be loaded using multiple threads. Are you sure about this ? I could not find anywhere something sayi
by jcelerier 8y ago
> However, in the browser resources (such as scripts) will be loaded using multiple threads.
Are you sure about this ? I could not find anywhere something saying that the main JS execution would switch threads - and even if it did, it would not impact the observable behaviour of your JS code anyways. Everything I could find on google says "JS is single-threaded" (except for web workers of course).
Is this page wrong ? : https://itnext.io/how-javascript-works-in-browser-and-node-ab7d0d09ac2f https://itnext.io/how-javascript-works-in-browser-and-node-a... and do you have an example of problematic code ?