What’s going on here?

Service workers are a new browser feature that provide event-driven scripts that run independently of web pages. Unlike other workers, service workers can be shut down at the end of events, note the lack of retained references from documents, and they have access to domain-wide events such as network fetches.

Service workers also have scriptable caches. Along with the ability to respond to network requests from certain web pages via script, this provides a way for applications to “go offline”.

Service workers are meant to replace the (oft maligned) HTML5 Application Cache. Unlike AppCache, service workers are comprised of scriptable primitives with an extensive use of Promises that make it possible for application developers to build URL-friendly, always-available applications in a sane and layered way.

To understand the design and how you might build apps with service workers, see the explainer document.

Spec and API development

For the nitty-gritty of the API, the draft W3C specifications are authoritative. Service Workers Nightly is a living document. Service Workers 1 is a subset of the nightly version that is advancing toward a W3C Recommendation. For implementers and developers who seek all the latest features, Service Workers Nightly is a right document that is constantly reflecting new requirements. For version 1, contributors plan to focus on fixing bugs and resolving compatibility issues without including new features from the nightly version.

Spec development happens via issues in this repository. For general discussion, please use the public-webapps@w3.org mailing list with a Subject: prefix of [service-workers].

Updates to the spec must reference resolved issues marked needs spec.

To make edits to the design, please send pull requests against the Nightly spec on the master branch. We use bikeshed. So, change docs/index.bs and submit it with the corresponding bikesheded index.html.

Examples

The W3C Web Mobile Group have defined a series of use-cases where service worker is particularly useful. You can help by adding more use cases, draft implementation code, or even working examples once browsers support the required APIs.

About labels and milestones on issues

This is to explain how we use labels and milestones to triage the issues. Note: This is a draft, suggestions for improvements are welcomed.

Prioritization

enhancement: is for anything that was assessed as not having any impact on the decisions for the current milestone and can therefore be safely discussed, rejected or prioritized later.

milestone: is used to mark issues we agreed to get done in principle by a given revision. For the sake of efficiency, we tend to only focus on the current milestone and leave everything else without specific milestones.

impacts MVP: is used to mark issues impacting the “Minimal Viable Product”. The MVP is the minimal scope of API that can solve actual use cases. These issues have the highest priority.

Risk labels for impacts MVP issues

medium risk: to further refine the “impacts MVP” issues. It indicates that the issue is moderately complex and that reaching a conclusion might take some time. These are of higher priority than issues with no risk label but are of lower priority than issues with a “high risk” label.

high risk: to further refine the “impacts MVP” issues. It indicates that the issue is significantly complex and that reaching a conclusion might take a lot of time and effort. These are of higher priority than issues with no risk label or a “medium risk” label.

Actions

needs spec: a decision has been made and the spec needs to be updated.

spec detail: has no significant implications for implementers nor web developers.

decided: to record that a decision has been made.

invalid: when something doesn’t constitute a valid issue.

wontfix: a decision has been made not to pursue this issue further.

duplicate: when a similar issue has already been filed.

bug: an oversight that needs to be fixed.

Areas

fetch: relates to Fetch

lifecycle: relates to lifecycle aspects of service worker

cache: relevant to the Cache APIs

question: not an actual issue. Items that have been filed in order to gain a better understanding of service worker.

html5的service worker,GitHub - w3c/ServiceWorker: Service Workers相关推荐

  1. Web Worker,Service Worker,Web Worker

    Web Worker.Worker Service和Service Worker Web Worker.Worker Service和Service Worker Service Worker.Wor ...

  2. 初识Service Worker

    当下PWA比较火,而Service Worker是实现PWA的一项关键技术,今天我们一起了解下关于Service Worker的一些基础知识和适用场景. 什么是Server Worker 我们先来看一 ...

  3. Service Worker ——这应该是一个挺全面的整理

    我在之前有空的时候粗略学习了一下 Service Worker :最近有空,所以花时间再去学习了下.我在这里整理了下,希望对大家有帮助. 同时,如果文章中有错误或者描述不当的地方,欢迎大家能够帮我指正 ...

  4. Service Worker 概念简介

    原文 丰富的离线体验.定期后台同步.推送通知--通常需要原生应用程序的功能--正在网络上出现. Service Worker 提供了所有这些功能所依赖的技术基础. What is a service ...

  5. Service worker 的概念和用法

    Service workers 本质上充当 Web 应用程序.浏览器与网络(可用时)之间的代理服务器.这个 API 旨在创建有效的离线体验,它会拦截网络请求并根据网络是否可用采取来适当的动作.更新来自 ...

  6. 聊聊Service Worker

    Web Workers web worker: 为Web内容在后台线程中运行脚本提供了一种简单的方法,线程可以执行任务而不干扰用户界面,即:运行在后台的 JavaScript 浏览器一般有三类 web ...

  7. Service Worker

    Service Worker 随着前端快速发展,应用的性能已经变得至关重要,关于这一点大佬做了很多统计.你可以去看看. 如何降低一个页面的网络请求成本从而缩短页面加载资源的时间并降低用户可感知的延时是 ...

  8. 借助Service Worker和cacheStorage缓存及离线开发

    一.缓存和离线开发 说得HTML5离线开发,我们通常第一反应是使用html5 manifest缓存技术,此技术已经出现很多年了,我以前多次了解过,也见过一些实践案例,但是却从未在博客中介绍过,因为并不 ...

  9. Service Worker 图片加载失败处理

    Service Worker 图片加载失败处理 参考文档 git clone https://gitee.com/wjj0720/Service-Worker.git 运行 npm i npm sta ...

最新文章

  1. python03-异常处理
  2. b树与b+树的区别_一篇文章理清B树、B-树、B+树、B*树索引之间的区别与联系
  3. ASA IPSEC ***配置
  4. 贪心/栈 - 去除重复字母
  5. flowable 动态多实例
  6. 在每趟长途的HTML5挑运之后
  7. python如何写代码_如何写出优雅的Python代码?
  8. C++难吗?好学吗?C++到底怎么样?
  9. Google整体架构猜想
  10. office每次打开都提示重新配置的三种解决方法
  11. 【Python】监控GPU温度
  12. NoteFirst word插件无法显示解决方案
  13. JDBC简单连接查询MySQL数据库
  14. 003. 电话号码的字母组合——回溯算法
  15. 8个成语接龙首尾相连_八拜为交成语接龙
  16. 恐龙快打无限子弹修改方案
  17. Python+Yolov5人脸口罩识别
  18. 没有100亿,你玩什么无人货架 | 深度
  19. UNIAPP、微信小程序激励视频、插屏等封装
  20. HOV车道检测系统应用激光透窗相机,可穿透车窗抓拍车内成员数量

热门文章

  1. 收好这份来自大厂技术大咖的“远程办公指南”
  2. 物联网终端五年后将超 270 亿!破竹之势下程序员如何修炼内功?
  3. 刚刚,百度宣布王海峰升任 CTO
  4. 科学技术究竟有没有国界?独家专访 IEEE 高级会员张海霞教授
  5. iSPRINT:Google 最高能的创新加速课程,绝不允许产品走弯路!
  6. 郭台铭“炮轰”微软;腾讯应用宝全面封禁多闪;波音更新飞行软件 | 极客头条...
  7. Python 爬取分析全国 12 个城市 4 万条房价信息,告诉你该怎样买房?
  8. 马云:遇见好老板很重要;锤子上海法人变更;摩拜更名美团单车 | 极客头条...
  9. Java 开发新选择?Apache NetBeans IDE 9.0 正式发布
  10. Android 危险!