|
requestIdleCallback(() => import("@atomico/site")); |
The issue is that Safari does not support requestIdleCallback:
https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback#browser_compatibility
I found a similar issue where they fixed the problem by using setTimeout as a backup in case requestIdleCallback isn't available:
remix-run/indie-stack#124 (comment)
atomicojs.dev/src/layouts/default.astro
Line 43 in ea622e8
The issue is that Safari does not support requestIdleCallback:
https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback#browser_compatibility
I found a similar issue where they fixed the problem by using setTimeout as a backup in case requestIdleCallback isn't available:
remix-run/indie-stack#124 (comment)