Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a stale-while-revalidate strategy for the Pages popup #87

Open
alexiglesias93 opened this issue Jan 20, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@alexiglesias93
Copy link
Member

Right now every time we open the Pages popup we rescan the whole site's sitemap to find out all the pages.
This often leads to a few seconds of waiting each time we open the popup:

Image

We could improve this experience by adopting a stale-while-revalidate strategy: when opening the popup we display the cached pages (if previously fetched) while we re-load them in the background. If there are any changes after loading, we simply re-render the pages tree.
We could display a loading spinner at the top of the popup indicating that we are refetching the content in the background:

Image

@alexiglesias93 alexiglesias93 added the enhancement New feature or request label Jan 20, 2025
@alexiglesias93 alexiglesias93 moved this to Backlog in Wized Roadmap Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant