Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Note from 31 May 2023

  • Nicolas Hoizey
  • 31 May 2023
  • PWA, Service Worker, Workbox
  • 3 reactions

Who still thinks writing a Service Worker for basic features (performance with cache, offline fallback) is cumbersome?

Using #Workbox recipes make it so easy!

Here's the Service Worker for https://pack11ty.dev 😍

https://github.com/nhoizey/pack11ty/blob/main/src/assets/js/service-worker.js

3 reactions

2 likes

  1. Jérémie Ducastel avatar
  2. Christophe avatar

1 repost

  1. Julianoë avatar
  • Older: Note from 31 May 2023
  • Newer: Note from 31 May 2023

Related contents with similar topics

  1. screenshot of A Local-First Case Study

    Jake Lazaroff avatar Jake Lazaroff

    A Local-First Case Study

    • Nicolas Hoizey
    • 7 October 2024
    • PWA, Service Worker, offline
    • 11 reactions

    It helps a lot that various libraries in the ecosystem compose well. Just snapping together ProseMirror, Yjs and Y-Sweet gave me a collaborative rich…

  2. Note from 13 May 2023

    • Nicolas Hoizey
    • 13 May 2023
    • Eleventy, esbuild, Service Worker, Workbox

    If someone is creating service workers with #Workbox recipes and injectManifest, a build with #esbuild, and doesn't have any issues, I'm interested! 😅

    I have a very strange issue:

    https://github.com/GoogleChrome/workbox/issues/3207

    Bonus points if this is with #Eleventy

  3. Note from 6 May 2023

    • Nicolas Hoizey
    • 6 May 2023
    • Service Worker, Workbox
    • 1 reaction

    Is it ok to use Workbox's injectManifest with the recent recipes warmCache option?

    I tried this without success in the Service Worker in Pack11ty:

    staticResourceCache({
      warmCache: self.__WB_MANIFEST,
    });

    Other caches are warmed up, not this one.

  4. screenshot of How do you test a service worker, anyway?

    Jeff Posnick avatar Jeff Posnick

    How do you test a service worker, anyway?

    • Nicolas Hoizey
    • 4 December 2022
    • PWA, Service Worker, test
    • 5 reactions

    if you're writing a service worker from scratch, if you're using one of Workbox's more exotic plugins or custom strategies, or if your service worker's…

  5. Note from 24 July 2020

    • Nicolas Hoizey
    • 24 July 2020
    • Service Worker, Workbox
    • 1 reaction

    Looks like #Workbox 6 will improve a few things I struggled with in the past, it became so easy to develop great Web Services! 👍

    https://github.com/GoogleChrome/workbox/releases/tag/v6.0.0-alpha.1

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy