CenterForDigitalHumanities / CenterForDigitalHumanities/TPEN-interfaces
Changing Pages Causes Full Page Refresh
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
## SPA-style Navigation
The page selector component used in /annotator and the tpen-project-header page turnery currently cause a full page reload on navigation via `location.href`. For a smoother user experience in the future, consider implementing SPA-style navigation:
Listen for a `page-selected` event and do the following:
- Update the URL via `history.pushState()` instead of `location.href`
- Fetch new page data dynamically
- Re-render the annotations without a full page reload
This would require architectural changes to support dynamic page loading in related components and interfaces, but would significantly improve the UX for users navigating between pages frequently.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.