multi threading - mmedrano9438/peripheral-brain GitHub Wiki
Javascript is single-threaded., and modern browsers improved this by using multiple scripts that run at the same time. Computers are extremely fast and with each tab using its own thread, but it could cause a blockage in the main thread which slows down UI events and triggers. In 2009, Javascript introduced Web Workers, to deal with this problem. Web Workers are Javascript scripts executed from an HTML page that runs on the background.