Resolve blocking of main thread on heavy workloads
I am building a tiny library that interfaces with the Canvas API through functional means.
Javascript Web Worker execution pauses after some time when the browser does not have the focus
I am trying to send regular heartbeats from the frontend in a javascript web worker (using Angular 15.2) but I noticed that its execution stops after some time, when the focus is not anymore on the browser (MS Edge here), or the computer screen is locked.