Web workers in html5? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Web workers in html5?

what is web workers post an example of web workers?

16th Jul 2017, 10:56 AM
Awrang Zaib
Awrang Zaib - avatar
3 Answers
+ 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
16th Jul 2017, 11:01 AM
Art456
Art456 - avatar
+ 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 ^^)
16th Jul 2017, 11:52 AM
visph
visph - avatar
+ 1
great to know
17th Jul 2017, 8:11 AM
Awrang Zaib
Awrang Zaib - avatar