Skip to content

Commit 4fb24a6

Browse files
committed
add demo
1 parent ce6bcf4 commit 4fb24a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_blogs/HTML5/ServiceWorker/ServiceWorker最佳实践.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ keywords: js,service worker,offline,proxy
55
createTime: 2023年2月15日
66
---
77

8+
## 先看看 Service Worker 能做什么
9+
10+
[Service Worker Demo](https://service-worker-demo-yrobot.vercel.app/)
11+
12+
Demo 的 github 地址:[https://github.com/Yrobot/serviceWorker-demo](https://github.com/Yrobot/serviceWorker-demo)
13+
814
## Service Worker 是什么
915

1016
> Service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available).
@@ -181,6 +187,8 @@ waitUntil(() => !!navigator.serviceWorker.controller, { max: 10000 }).then(
181187
182188
### 如何在 Next.ts 中引入 service worker
183189
190+
参看 [《在 Next.ts 中使用 ServiceWorker》](./%E5%9C%A8Next.ts%E4%B8%AD%E4%BD%BF%E7%94%A8ServiceWorker)
191+
184192
## 参考资料
185193
186194
[《lavas-project/Service Worker》](https://lavas-project.github.io/pwa-book/chapter04.html)

0 commit comments

Comments
 (0)