Files
bitvid/perf/hits-2026-02-15.json
T
google-labs-jules[bot]andPR0M3TH3AN 106f7640c4 fix(exploreData): trigger refresh immediately on visibility change
- `handleVisibility` only scheduled intervals but didn't trigger an immediate refresh when returning to the tab.
- This caused `tests/unit/services/exploreDataService.test.mjs` to fail (assertion `0 !== 1`).
- Added explicit calls to `refreshWatchHistoryTagCounts` and `refreshTagIdf` when `document.hidden` becomes false.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 15:10:29 +00:00

38 lines
1.1 KiB
JSON

[
{
"file": "js/ui/loginModalController.js",
"pattern": "setInterval",
"line": "initializeModalCloseTracking",
"trigger": "always (fallback)",
"impact": "Main thread polling (500ms) when MutationObserver missing. Should be gated."
},
{
"file": "js/ui/loginModalController.js",
"pattern": "setInterval",
"line": "startModalCloseWatch",
"trigger": "login flow (fallback)",
"impact": "Main thread polling (200ms) during login. Should be gated."
},
{
"file": "js/viewCounter.js",
"pattern": "setTimeout",
"line": "persistTimer",
"trigger": "view count update",
"impact": "Debounced local storage write. Low impact."
},
{
"file": "js/app/playbackCoordinator.js",
"pattern": "setInterval",
"line": "startTorrentStatusInterval",
"trigger": "video playback",
"impact": "Torrent status polling (3000ms). Already visibility gated."
},
{
"file": "js/services/exploreDataService.js",
"pattern": "setInterval",
"line": "startIntervals",
"trigger": "background data refresh",
"impact": "IDF/History refresh. Already visibility gated."
}
]