Cache API responses to speed up dashboard navigation
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
Research direction
No files or tests are named. Start by locating the dashboard data-loading and fetch calls, then trace how navigation and test switching request Treeherder data. Done means JSON responses use IndexedDB caching with a 15–30 minute TTL, fetch fallback, and a way to force fresh data through a “Refresh Data” button.
Written by the indexing model from the issue text.
Description
Every page load re-fetches all data from Treeherder. Navigating between dashboards or switching back to a previous test means waiting for all of it again.
We could cache JSON responses in IndexedDB (sessionStorage is too small for the payloads). Something like a cachedFetch() wrapper with a 15-30min TTL that falls back to fetch() if it fails. We can also add a "Refresh Data" button so you can force fresh data when needed.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 11
- Avg merge
- 4m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/performance
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mozilla/performance#48 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
mozilla/performance#31 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
mozilla/performance#1 ·
All issues in mozilla/performance
Similar issues
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·
-
bug p1 tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 84/100