+ 2
Web workers in html5?
what is web workers post an example of web workers?
3 Respuestas
+ 5
A web worker is a JavaScript that runs in the background, independently of other scripts, without affecting the performance of the page. You can continue to do whatever you want: clicking, selecting things, etc., while the web worker runs in the background.
for example:
https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webworker
+ 3
Check this code:
https://code.sololearn.com/WQKuI5QWQq3S/?ref=app
I've used web workers to handle algorytm of 2d arrays iteration with different motifs... And in addition, workaround to avoid external JS script (as you usually do for web workers) to be runnable on code playground ;)
(this code is a sub part of another project still not finished -- missing this library integration -- which was requirind thread to handling heavy computation to generate run-time progressivly display of Mandelbrot fractals: I should post it when done, but I'm currently working on many projects at same time ^^)
+ 1
great to know