What are the limitations with web workers?

Posted by Jessica Taylor | Updated on

You need to remember two important things when using Web Workers in Angular projects,

  1. Some environments or platforms(like @angular/platform-server) used in Server-side Rendering, don’t support Web Workers. In this case you need to provide a fallback mechanism to perform the computations to work in this environments.
  2. Running Angular in web worker using @angular/platform-webworker is not yet supported in Angular CLI.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers