6 ms·
Looks like something that can be solved by moving the task to background with [web workers][0]. [0]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Worke
by fbcpck 5y ago
Looks like something that can be solved by moving the task to background with [web workers][0].
[0]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers...
- tralarpa 5y agoAt least with Firefox, doing tasks in the background was sometimes quite painful, especially during development. For example, I do some CPU-intensive stuff in the background, close the tab because I noticed a mistake in my code -> background task still runs for several seconds eating CPU and memory until it is killed or finished (I didn't check to be honest) by the browser. Edit: As with everything related to complex web applications (and I had two or three in my career), it is obvious that the whole environment (client, protocols, languages,...) was never designed for this.