Web workers and Angular
On account of the platform agnostic design of Angular, the core team decided to take advantage of this API; during the summer of 2015, Google embedded web workers support into the framework. This feature allows most of the Angular applications to be run on a separate thread, making the main UI thread responsible only for rendering. This helps us achieve the goal of 60 fps much more easily than running the entire application in a single thread.
Web workers support is not enabled by default. When enabling it, we need to keep something in mind—in a web worker–ready application, the components will not be run in the main UI thread, which does not allow us to directly manipulate the DOM. In this case, we need to use APIs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access