Fix internal links in the options page
Repository details (talkie)
- Project page
- talkie
- Project log category
- talkie (708 entries)
- Repository
- @joelpurra/talkie
- Owner
- @joelpurra
- Issues
- Issues on Github
- Contributors
- Contributors on Github
- Project status
- ⏲️ This project has had recent commits.
- 📂 This project is open.
- 🌠 This project is popular.
- Repository activity period
- 🗓—
- Commits
- 751 commits
- Stars
- 71 stars
Commit details (974fb460)
- Author
- Joel Purra
- Authored at
- Committer
- Joel Purra
- Committed at
Commit message
Fix internal links in the options page
- Linking internal options tabs with an (extension root-)absolute URL triggered a full page reload.
- This means losing page state.
- For (the
apt
, non-snap
installation) Firefox on Ubuntu with 8000+ voices, a page reload incurs a significant delay.- Instead, using hash-only links, rely on the
hashchange
event to switch tabs.
- This keeps page state, while allowing browser back/forth buttons to work.
- Particularly useful for keeping the selected voice in the
#voices
tab, since navigating to a specific voice again is not effortless.- Absolute URLs are still used for links from outside the options page, such as the popup and welcome page.
- Cleaned up the configuration object.
- Removed dynamic URL assembly, moved hardcoded values to
configuration.json
.- Grouped internal/external hardcoded URLs.
Raw text
Fix internal links in the options page - Linking internal options tabs with an (extension root-)absolute URL triggered a full page reload. - This means losing page state. - For (the `apt`, non-`snap` installation) Firefox on Ubuntu with 8000+ voices, a page reload incurs a significant delay. - Instead, using hash-only links, rely on the `hashchange` event to switch tabs. - This keeps page state, while allowing browser back/forth buttons to work. - Particularly useful for keeping the selected voice in the `#voices` tab, since navigating to a specific voice again is not effortless. - Absolute URLs are still used for links from outside the options page, such as the popup and welcome page. - Cleaned up the configuration object. - Removed dynamic URL assembly, moved hardcoded values to `configuration.json`. - Grouped internal/external hardcoded URLs.