I am really second guessing the decision to build this in .

There's a LOT of confusion around the new paradigm, the Discord is a madhouse.

I've been struggling just to get the and for the set up right. It seems most people use `next-pwa` but it hasn't been updated to support AppRouter yet so there's a nasty fix to do. github.com/shadowwalker/next-p

I haven't even attempted yet.

#servercomponents #pwa #webmanifest #serviceworker #approuter #nextjs

Last updated 1 year ago

Why is it ALWAYS such a pain in the ass to register a for a with a . Nobody every considers this use-case when they design these things and we end up with some hacky work around with tons of caveats.

#framework #web #pwa #serviceworker

Last updated 1 year ago

RUN 90s · @BanditRun90s
1 followers · 30 posts · Server social.vivaldi.net

FYI, I think viewing posts directly with will return something went wrong due to I've disable by default, better to allow it while browsing...
In Firefox or any forks of that, I think at least partitioned SW are acceptable.

#misskey #umatrix #serviceworker

Last updated 1 year ago

Daniel Dickison · @dand
31 followers · 146 posts · Server mastodonmusic.social

Hey experts, anyone seen this issue in ? ServiceWorkerRegistrationโ€™s pushManager.permissionState(), Notification.permission, and navigator.permissions.query({name: 'notifications'}) give different answers when in fact the site has already been granted permissions from a previous session. It seems navigator.permissions.query is accurate in my case, though someone here has seen the opposite: developer.apple.com/forums/thr

Iโ€™m thinking as a workaround querying all three and taking the most permissive as the source of truth, but ew.

#browser #safari #webdev #serviceworker #pwa #pushnotifications #hacks

Last updated 1 year ago

Hmm, seems like the 500ing is only when I load the page in an incognito window... it's probably still my cache in the , but I'm going to replace the `StaleWhileRevalidate` strategy with `NetworkFirst`. This will mean that the page will have to wait for a network response, but it will maintain my offline support so the install prompt will still appear.

#webdev #pwa #serviceworker #workbox

Last updated 1 year ago

First I've got to figure out why my static assets are 500ing half the time. It's probably my slapdash strategy. I like to use because it feels like I should just serve from the if I have *something* but I don't feel like prompting the user to reload if there's fresh data. It's probably a bad UX though. I find myself reloading the page several times just to make sure I'm looking at fresh data.

#cache #stalewhilerevalidate #caching #serviceworker

Last updated 1 year ago

Nicolas Hoizey · @nhoizey
829 followers · 7360 posts · Server mamot.fr

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

Using recipes make it so easy!

Here's the Service Worker for pack11ty.dev ๐Ÿ˜

github.com/nhoizey/pack11ty/bl

โš“๏ธ nicolas-hoizey.com/notes/2023/

#workbox #pwa #serviceworker

Last updated 1 year ago

Nicolas Hoizey · @nhoizey
802 followers · 7019 posts · Server mamot.fr

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:

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

Other caches are warmed up, not this one.

โš“๏ธ nicolas-hoizey.com/notes/2023/

#serviceworker #workbox

Last updated 1 year ago

· @data0
76 followers · 191 posts · Server fosstodon.org

Efficiently downloading huge files via in the in 2023 still seems the same as in 2013: Open a URL with a Content-Disposition header.

is nice but only supported in some derivates and presents challenges.

hacks ร  la StreamSaver.js seem to be the next best thing. But it's not free of compatibility issues either and with all that ceremony is not the best.

So good 'ol Content-Disposition it is.

#javascript #browser #http #filesystemaccessapi #chromium #ux #serviceworker #dx

Last updated 1 year ago

Romaric · @romaric
31 followers · 361 posts · Server social.romaricpascal.com

A different kind of CSS: a Client Side Server. A little experiment to make a Service Worker run a server locally romaricpascal.gitlab.io/client.

Turns out the browser provides plenty to make that happen, it's great!

#frontend #javascript #serviceworker

Last updated 1 year ago

Perry · @perry_mitchell
2 followers · 8 posts · Server infosec.exchange

Already sick of โ€™s manifest V3 for extensions. The requirement to have service workers instead of background daemons means I canโ€™t keep my password managerโ€™s data in memory.

What am I supposed to do, decrypt the userโ€™s vault every time the service worker wakes?

Anyone have any better ideas? Iโ€™d prefer to not have to rely on the desktop app for the โ€œliveโ€ vault data, as having a stand alone extension is valuable as a feature in itself.

#chrome #googlechrome #manifestv3 #serviceworkers #serviceworker #browserextensions #browserAddons

Last updated 1 year ago

vomanc :verified: · @vomanc
3 followers · 9 posts · Server infosec.exchange
Doug Parker · @develwithoutacause
182 followers · 423 posts · Server techhub.social

@tbroyer Thanks for sharing that. I'd heard of the approach but don't think I'd read that article specifically. The performance metrics are very interesting.

I think the difference is that routing is technically an approach and keeps context between routes in a way that a navigation would not.

HTML Fragments as a concept is also a little more flexible beyond rendering full pages. It allows you to dynamically render individual components instead of a full page. For example, you can use it to infinite scroll a list, or edit an item of the list and rerender on the server without invalidating the whole page. This is discussed more in the original post:

blog.dwac.dev/posts/html-fragm

For a fully static site with a lot of content, I think the service worker approach could work well, while HTML fragments provides a bit more interactivity.

#htmlfragments #spa #javascript #serviceworker

Last updated 2 years ago

Doug Parker · @develwithoutacause
180 followers · 407 posts · Server techhub.social

New blog post: Building a with .

blog.dwac.dev/posts/html-fragm

This explorers how we can use HTML fragments to define routes, load them dynamically, and then apply them to the main page content. It talks about more complexities with streaming (because I didn't learn my lesson last time) and even has a bonus section on shipping an application server _inside_ a .

Lots of interesting stuff, I hope you check it out!

#router #htmlfragments #html #serviceworker

Last updated 2 years ago

Paul Weber · @000panther
141 followers · 112 posts · Server ooe.social

Wer kennt sich mit aus? Ich wรผrde gerne den verzรถgerten Reload wenn eine neue Version verfรผgbar ist machen wenn der User ohnehin รผber den Router navigiert ... Gute Idee oder nicht?
stackoverflow.com/questions/75

PS: looking for coworkers - devjobs.at/team/apollo-ai

#angular #serviceworker #development #webdev

Last updated 2 years ago

Doug Parker · @develwithoutacause
168 followers · 341 posts · Server techhub.social

: I think I've suggested this before, but it would be cool to have a small "server" library using APIs.

Would be interesting to wrap such an app in an installer to "bring your own server," maybe in a or .

Probably not much practical use, but could be useful for interactive demos when you're too cheap to pay for a real server. ๐Ÿ™‹

#idea #serviceworker #webbundle #hybridapp #ssr

Last updated 2 years ago

test1g6a1g8x · @test1g6a1g8x
1 followers · 119 posts · Server mastodon.hsablonniere.com

๐Ÿ”— How do you test a service worker, anyway?
by $jeffposnick$hachyderm.io

โš“๏ธ nicolas-hoizey.com/links/2022/

#test #serviceworker #pwa

Last updated 2 years ago

test1g6a1g8x · @test1g6a1g8x
1 followers · 126 posts · Server mastodon.hsablonniere.com

#test #serviceworker #pwa

Last updated 2 years ago

Daniel · @woss
25 followers · 92 posts · Server mastodon.social

Did you know that `bigint` is not serializable when passing from to the application?

The solution is to transform it as a string and then recreate the Bigint.

#javascript #chrome #extension #serviceworker

Last updated 2 years ago

Julien / Sphinx · @Sphinx_Pouet
169 followers · 2571 posts · Server mamot.fr

Il est clair pour vous ce diagramme ?

#serviceworker #webdev

Last updated 2 years ago