After initial page load, a service worker could intercept all the HTMX app's AJAX requests, but it could only work with what's already cached. Using a lot of tooling like workbox the developer could pre-cache the entire app. (Would that mean no dynamic responses?)
Alternatively, implement the entire HTMX app in JS, build the app once for the NodeJS/Deno backend and once for the front-end. After page load, the frontend could take over.
Or something like that. It's a bit convoluted as PWA solutions often are.
Have you found nice workarounds for that?
If you'd like to find out how I build Mobile-first apps with Go, HTML and HTMX hit me up.
Or to a search engine: https://share.google/dTJmGU38xw0kDSJlZ