Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Simpler fallback
Jake Archibald5d691af8a16e
diff --git a/src/copy/sw.js b/src/copy/sw.jsindex b5767ccf..43849e63 100644--- a/src/copy/sw.js+++ b/src/copy/sw.js@@ -1,14 +1,4 @@// I accidentally shipped with the wrong service worker name.// This picks up users that still might be using that version.// We'll be able to delete this file eventually.--addEventListener('install', () => {- skipWaiting();-});-addEventListener('activate', async () => {- await self.registration.unregister();- const allClients = await clients.matchAll({- includeUncontrolled: true,- });- for (const client of allClients) client.navigate('/');-});+skipWaiting();