随笔分类 -  PWA

Progressive web app
摘要:Previously we saw how to Hijacking all the reqest, but this is not useful. So now we want to see how to Hijacking one kind of request. For example we 阅读全文
posted @ 2016-05-16 04:35 Zhentiw 阅读(175) 评论(0) 推荐(0) 编辑
摘要: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 阅读(154) 评论(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 阅读(248) 评论(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 阅读(174) 评论(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 阅读(258) 评论(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 阅读(222) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示