← Back to release summary

Remove importScripts() of new scripts after service worker installation.

Category
Service Worker
Type
New or changed feature
Status
Removed (Chrome 71)
Intent stage
None

Summary

Until this deprecation, a service worker could use importScripts() to import any script at any time. After this change, a service worker can only importScripts() in two cases: - Before installation finishes (from the initial execution of the service worker until it reaches the `installed` state). - After installation finishes, only for scripts that were already imported in the previous phase.

Standards & signals

View on chromestatus.com