当前位置:网站首页>Use webworker to perform background tasks
Use webworker to perform background tasks
2022-07-28 22:23:00 【I don't seem to know each other】
according to MDN Official explanation :Web Worker by Web Content running scripts in a background thread provides a simple way . Threads can perform tasks without interfering with the user interface .( Click here to , Check the website ).
Worker Notes on the use of sub threads
special Worker Share with Worker
In dedicated workers Under the circumstances ,DedicatedWorkerGlobalScope The object represents worker The context of ( special workers Refers to the standard worker Only used in a single script ; share worker The context is SharedWorkerGlobalScope (en-US) object ). A dedicated worker It can only be used by the script that generated it for the first time , And share worker Can be used by multiple scripts at the same time .
The following examples belong to “ special Worker”.
Worker Restrictions on use
stay worker Inside , Can't operate directly DOM node , Can't be used window Object's default methods and properties . But you can use a lot window Things under objects , Include WebSockets,IndexedDB as well as FireFox OS A dedicated Data Store API And so on .
namely : In the use of Worker When the sub thread executes background tasks ,Worker Object can be called window Properties and methods , What are the details ? can
边栏推荐
- Lotus 1.16.0 extend sector expiration time
- HCIP(15)
- SQL injection less42 (post stack injection)
- Ukrainian officials: half of Ukrainian agricultural products are exported through the Danube port
- 04.toRef 默认值
- Jmeter 安装第三方插件 Plugins Manager
- 罗克韦尔AB PLC RSLogix数字量IO模块基本介绍
- Have you seen the management area decoupling architecture? Can help customers solve big problems
- HCIP(13)
- HCIP(8)
猜你喜欢
随机推荐
Ukrainian officials: half of Ukrainian agricultural products are exported through the Danube port
示波器发展史中的变化
System Analyst
拥抱开源指南
What is time complexity
Ruiji takeout project - development of business development function Day2
openresty 请求鉴权
Kubeedge releases white paper on cloud native edge computing threat model and security protection technology
Aimbetter insight into your database, DPM and APM solutions
深度学习必备:对数据集的拆分、根据拆分图片拆分labels、对全部标注标签进行区间检查
04. Default value of toref
vuejs中如何实现动态路由切换及路由的缓存
HCIP(8)
typeof原理
Ecmasript 5/6 notes
[NLP] generate word cloud
HCIP(15)
JS DOM编程之平平无奇小练习
[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints
Sword finger offer II 052. flatten binary search tree (simple binary search tree DFS)








![[NLP] generate word cloud](/img/c4/4e9707bba58732a90d1c30312719a3.png)
