mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- `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]>
38 lines
1.1 KiB
JSON
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."
|
|
}
|
|
]
|