You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be great if we could get some basic PWA setup going to start caching. Right now when I'm on a slow connection it can be quite slow to load the page.
First step is to just cache the response to show right away and then show updates once we get them from the server. Later we could think about things like adding tasks when offline and sending later.
Describe the solution you'd like
The memories app has a pretty good PWA that we could look at for inspiration
@raimund-schluessler I've been thinking about how to speed of the first page load.
It seems that a significant reworking would have to be done to support something like stale-while-revalidate caching (tanstack query is the popular choice for this now), which is common in PWAs.
However, perhaps a simpler approach is to just cache the data in local storage after it loads and then show it before we get updated data from the server on page load.
This would make it so we don't have to wait for responses from the server before rendering tasks and new tasks would just pop into view a moment later. We could also add a loading indicator. In later PRs the cache could be updated anytime a change is set to the server.
Is your feature request related to a problem? Please describe.
It would be great if we could get some basic PWA setup going to start caching. Right now when I'm on a slow connection it can be quite slow to load the page.
First step is to just cache the response to show right away and then show updates once we get them from the server. Later we could think about things like adding tasks when offline and sending later.
Describe the solution you'd like
The memories app has a pretty good PWA that we could look at for inspiration
https://github.com/pulsejet/memories/blob/e765a89989c42cd51e39ecfe053cf8625837d3ab/src/service-worker.ts
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: