Skip to content

Commit 32d3b67

Browse files
committed
new article: service worker
1 parent 00f5314 commit 32d3b67

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

2022/09/browser_service_worker_api.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# [browser Service Worker](/2022/09/browser_service_worker_api.md)
2+
3+
在 google colab 和腾讯在线文档这类数据频繁交互的网页应用中,
4+
5+
在 chrome dev tools 的 network 监控中能看到一个齿轮图标前缀的网络请求
6+
7+
[查资料](https://stackoverflow.com/questions/48336926/name-with-gear-icon-in-chrome-network-requests-table#:~:text=The%20gear%20icon%20signifies%20that,to%20populate%20the%20offline%20cache.)
8+
后发现原来是 browser 的 service worker API 技术就会带上齿轮图标
9+
10+
> 随着 web 服务变复杂,js 中耗时间耗资源的运算过程会阻塞单线程的 js runtime, service worker 是单独进程从而解决这个问题
11+
12+
service worker 可以干页面缓存+拦截请求
13+
14+
<https://www.jianshu.com/p/8c0fc2866b82>

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- [文章列表 - 吴翱翔的博客](/)
22
- **2022-09**
3+
- [browser Service Worker](/2022/09/browser_service_worker_api.md)
34
- [币圈夹子机器人](/2022/09/block_chain_robot.md)
45
- [凤凰架构笔记](/2022/09/icyfenix_notes.md)
56
- [stream::unfold rsp](/2022/09/process_command_to_http_stream.md)

0 commit comments

Comments
 (0)