All of the above examples use the main thread to run and this can freeze it on load. To solve this problem lets start use Web Workers. To begin we will integrate a simple console_log example into the Angular Web Worker.
Open up the developer console and you should see "Hey! From Web Worker!"
View on GitHub