Why are Web browsers single threaded?
Browsers aren’t single threaded, but your script runs in a single runloop. What @Ja͢ck said. Each tab gets its own thread. JavaScript runs an Event Loop that listens for callbacks to it saying, HEY I got something for you to do DOM. Why are browsers single threaded? Browsers aren’t single threaded, but your script runs in a single runloop. What …