Shared Workers | Multithreading in JS #2 | Advanced JS Concepts

preview_player
Показать описание
Workers are a simple means for web content to run scripts in background threads. The worker thread can perform tasks without interfering with the user interface. A shared worker is accessible by multiple scripts — even if they are being accessed by different windows, iframes or even workers.
In this video, we will understand how to use shared workers with 2 examples.

JavaScript AVERAGE to PRO in 100 Minutes:

Socials:

Content of this video:
00:00 - JS Avg to Pro in 100 minutes
Рекомендации по теме
Комментарии
Автор

A good and simple starter introduction, what is good is that its very focussed with little extra fluff. Thank you. One point, Chrome will not load the service worker due to security and so will be unable to run it. To run it you will need to install a local web server to serve up the html files. If you have node installed, then a suggestion is to run: npm install -g local-web-server, and then start it up in the directory to serve from using the ws command.

mikezcooler
Автор

I finally understand how it's working, thank you

duuhweh
Автор

Great knowledge, please try to include real world use cases!

mananshah