MCPcopy Create free account
hub / github.com/dailydotdev/apps / load

Function load

packages/shared/src/hooks/useImagePreloader.ts:14–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12export function useImagePreloader(urls: string[]): void {
13 useEffect(() => {
14 const load = () => urls.forEach(preloadImage);
15
16 // Use requestIdleCallback if available, otherwise setTimeout as fallback
17 if (typeof requestIdleCallback !== 'undefined') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected