JavaScript Web Workers Explained

preview_player
Показать описание
A Web Worker is a script that runs in a background threads, separate from the main thread. Web workers enable the browser to execute multiple threads of JavaScript in parallel with each other. The worker thread can perform tasks without interfering with the user interface. Once created, a worker can send messages to the JavaScript code that created it by posting messages to an event handler specified by that code (and vice versa).

📚Materials/References:

🌎 Find Me Here:

Рекомендации по теме
Комментарии
Автор

Your way of explaining is probably the best I've seen on YouTube. Your video on a certain concept pretty much leaves me with no questions to ask about it.

bewa
Автор

I love your approach of explaining in a short consice and a simple manner. Thank you now I have an understanding of web workers. ❤️

vijay_explorer
Автор

A lot of these videos have been super helpful! Good length, good explanations. Thanks dude! Keep it up!

capnmorgs
Автор

Best explanation I've heard yet. I'm ready to code some workers now. 👍

paulbocostudio
Автор

Wow this is a great tutorial. I have seen like 20 videos of you in last 2-3 hours, your explanations are super easy to understand. Can you please also make a video on use cases distinguishing web worker vs service worker and web scokets?
I am confused which one to be used for what type of use cases?

ashishagarwal
Автор

Short and to the point. Great explanation thanks man. new subscriber notification up.

itzazeez
Автор

clear and informative with an example. Thank you so much.

fitybmn
Автор

Thank you man, it was an intro of basics, but it was useful, it introduced me to the main concept of Web Worker API

MahmoudKhudairi
Автор

I've never heard about web workers before, this is interesting, thank you so much.

anouarnouri
Автор

What if you need web workers to do multiple tasks and in different js files, how will they distinguish between msgs they pass among themselves. Like there is no indication apart from where it's called an instance of worker can have different name, but inside worker.js file how will they distinguish between multiple functions (performing different tasks)

abhishekpratap
Автор

this is so helpful especially for a beginner

divijakatakam
Автор

you just earned yourself a subscriber. well done!

xmaxfuture
Автор

Very clearly explained! Thank you for sharing.

gradientMesh
Автор

You Sir are a true hero. Thanks for this!

oz
Автор

great, I wonder if i can inject worker as code from server to hide my logic from public but still using client computation power

xlkda
Автор

Thank you for explaining this. It was very helpful!

HdaB
Автор

Great explainer video. Loved the way you demonstrated. For your next videos can I request some things I often confuse with "web workers"?
Service workers
Web sockets
Web components

Crevulus
Автор

That was clear and straight .
Thank you very much

mohammadreza
Автор

Is it possible to pass the function and the params to the worker file and return the result ? So it can be versatile..

vatsalyasinghi
Автор

Very lucidly explained!! Thank you....

saikarthik