摘要:
We want to do offline first, the first thing we need to do is we should able to catch the browser request and return our cache data from serice worker 阅读全文
posted @ 2016-05-15 21:49
Zhentiw
阅读(157)
评论(0)
推荐(0)
摘要:
You can debug with chrom dev tool: 1. Use console to debug service worker: Swith to sw.js context then you can access 'self' object 2. Set breakpoint: 阅读全文
posted @ 2016-05-15 21:08
Zhentiw
阅读(253)
评论(0)
推荐(0)
摘要:
The No1. is because, service worker only take control after it is loaded. But the first time we go to the page, service worker actually is not there, 阅读全文
posted @ 2016-05-15 20:56
Zhentiw
阅读(190)
评论(0)
推荐(0)
摘要:
Service worker stays between our browser and noetwork requests. It can help to fetch data from cache and cache the data from Internet. To get our serv 阅读全文
posted @ 2016-05-15 17:22
Zhentiw
阅读(265)
评论(0)
推荐(0)
摘要:
Why offline first? Imagin you are visiting a website, it is fine if wifi connection is good. It might be also "fine" if show you "Your don't have inte 阅读全文
posted @ 2016-05-15 16:35
Zhentiw
阅读(227)
评论(0)
推荐(0)
摘要:
If you are looking for a host website, you can try Firebase, heroku or AWS... Today, I tried to deploy a simple website to Firebase, it looks like pre 阅读全文
posted @ 2016-05-15 03:56
Zhentiw
阅读(264)
评论(0)
推荐(0)

浙公网安备 33010602011771号