October 2017
Intermediate to advanced
280 pages
6h 50m
English
Let's show how we can make an application compatible with web workers. This way, we can reduce the frame drop in computationally intensive apps, since we'll free the main UI thread and let it be responsible only for rendering.
Inside index.html, we will need to add the following scripts:
<!-- ch9/todo_webworkers/index.html --> ... <script src="/node_modules/systemjs/dist/system.src.js"> </script> <script src="/node_modules/reflect-metadata/Reflect.js"></script> <script src="/node_modules/zone.js/dist/zone.js"> </script> <!- Contains some basic SystemJS configuration in order to allow us to load Angular --> <script src="./config.js"></script> <script> System.import('./bootstrap.js') .catch(function ...Read now
Unlock full access