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 Workerself.registration
  • This can be handled inside the Service Workerself.skipWaiting
  • To achieve theclients.get()clients.getAll()
  • Support in Service workerscontainer.register()registration.unregister()
  • IndexedDB and Web Sockets are enabled in the Service Worker
  • It is supported in Service workerscontainer.getRegistration()container.getRegistrations()
  • Support in Service workersserviceWorker.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