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…
There are 11 contents with this tag:
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…
Building a Single-Page App with htmx
It’s a simple proof of concept todo list. Once the page is loaded, there is no additional communication with a server. Everything happens locally…
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
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
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.
How do you test a service worker, anyway?
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…
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
TIL: if you cache images with a Service Worker, and you have a Content Security Policy, the image's origin should be in both the img-src
and connect-src
directives.
Details from @qubyte: https://qubyte.codes/blog/content-security-policy-and-service-workers
Wondering why my #Workbox based Service Workers breaks images on https://nicolas-hoizey-com.netlify.app/notes/ but not https://nicolas-hoizey.com/notes/
It's exactly the same code. 🤷♂️
Tried to write a fresh new Service Worker with #Workbox 5 and #Rollup (first time ever), almost copy/pasted from what @jeffposnick did in https://github.com/GoogleChromeLabs/so-pwa but I get a strange error reporting mixed content… 😥
How much data should my Service Worker put upfront in the offline cache?
I love when Web site/apps work even when I'm offline. I've made my SVG game esviji work offline thanks to appcache just after attending Jake Archibald conference about why Application Cache is a Douchebag during the 2012 edition of the Paris Web conference. Fortunately, we have now Service Workers (in some browsers), which gives us more control over this kind of cache for offline browsing. But as Uncle Ben says, “With Great Power Comes Great Responsibility”.
See all tags.