()
| 9618 | } |
| 9619 | }, 10000); // Every 10 seconds when on dashboard (reduced from 5s) |
| 9620 | |
| 9621 | // OPTIMIZATION: Reduce dashboard refresh frequency (was 15s, now 20s) |
| 9622 | // Background sync runs every 15s, so 20s refresh is sufficient |
| 9623 | autoRefreshIntervals.dashboard = setInterval(() => { |
| 9624 | if (currentTab === 'dashboard') { |
| 9625 | loadDashboardData(); |
| 9626 | } |
| 9627 | }, 20000); // Every 20 seconds when on dashboard (reduced from 15s) |
| 9628 | |
| 9629 | // Set up periodic update checking |
| 9630 | autoRefreshIntervals.updates = setInterval(() => { |
| 9631 | checkForUpdatesQuiet(); |
| 9632 | }, 300000); // Every 5 minutes |
| 9633 | |
| 9634 | // OPTIMIZATION: Defer initial update check (was 5s, now 30s) |
| 9635 | // Not critical for initial dashboard load |
no test coverage detected