Khalid ⚡ on Nostr: I made a ServiceWorker intercept #HTMX calls and manage state inside of the ...
I made a ServiceWorker intercept #HTMX calls and manage state inside of the ServiceWorker process all in-browser.
The downside is it takes a few seconds for the service worker lifecycle to start, so it's likely only available on page refreshes. Still a neat concept.
{
"id":"f939bc57a81518bb556c82e4ccc0c2412c306c79247ec01dd1db6bfcd6acb072",
"pubkey":"8473d11f1a7de76a81e7ef02e19a62a1b44382d1cece56a737e5e073b504fc85",
"created_at":1715280322,
"kind":1,
"tags": [
[
"t",
"htmx"
],
[
"proxy",
"https://mastodon.social/users/khalidabuhakmeh/statuses/112412611182498734",
"activitypub"
]
],
"content":"I made a ServiceWorker intercept #HTMX calls and manage state inside of the ServiceWorker process all in-browser. \n\nThe downside is it takes a few seconds for the service worker lifecycle to start, so it's likely only available on page refreshes. Still a neat concept.\n\nhttps://files.mastodon.social/media_attachments/files/112/412/610/478/748/596/original/50362b0e1cd9e73a.mp4",
"sig":"01933bdec71924aeb8d5b94aca05f9b23b1b7eb6927d58ccc70e989c4d94757c4117714afc4a250f1ec7c85ba6db82897e0be4a12c46299508044fca040ae834"
}