Skip to content

Safari / iOS crashes when loading https://atomicojs.dev/ #2

Description

@jackrobbins1

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions