MCPcopy Create free account
hub / github.com/winfunc/opcode / schedulePreload

Function schedulePreload

src/components/UsageDashboard.tsx:184–190  ·  view source on GitHub ↗
(callback: () => void)

Source from the content-addressed store, hash-verified

182
183 // Use requestIdleCallback if available, otherwise setTimeout
184 const schedulePreload = (callback: () => void) => {
185 if ('requestIdleCallback' in window) {
186 requestIdleCallback(callback, { timeout: 2000 });
187 } else {
188 setTimeout(callback, 100);
189 }
190 };
191
192 // Preload adjacent tabs
193 schedulePreload(() => {

Callers 1

UsageDashboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected