On July 14, 2017, Apple Safari team started the development of Service Worker. After 5 months of effort, Apple opens the Service Worker by default in Safari Technology Preview 46.
Safari Technology Preview is a version of Safari for OS X released by Apple that includes a cutting-edge development version of the WebKit browser engine.
In other words, we can now experience PWA on Safari on the MAC.
The main content of this release related to Service workers is as follows:
- Service workers are supported by default
- It is accessible inside the Service Worker
self.registration
- This can be handled inside the Service Worker
self.skipWaiting
- To achieve the
clients.get()
和clients.getAll()
- Support in Service workers
container.register()
和registration.unregister()
- IndexedDB and Web Sockets are enabled in the Service Worker
- It is supported in Service workers
container.getRegistration()
和container.getRegistrations()
- Support in Service workers
serviceWorker.postMessage()
和serviceWorkerRegistration.update()
These are the main new features introduced. In fact, there are many bugfixes or more detailed function description. I’m not going to translate it.
You can see that Safari is starting to support some of the basic apis.
Then the author also use ispwaready.toxicjohann.com tested the irrepressible excitement.
Although the score is still relatively low. But it’s a big improvement over Safari.
More information can be found at webkit.org/blog/8042/r… .
If you want to try it, download it from webkit.org/downloads/.
In addition, Edge also enabled the Service Worker in Build 17063 yesterday. See the original developer.microsoft.com/en-us/micro… .
Scan the code to follow w3CTech wechat official account