Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestIdleCallback not available in Safari #98

Closed
jorisnoo opened this issue Aug 24, 2023 · 2 comments · Fixed by #99
Closed

requestIdleCallback not available in Safari #98

jorisnoo opened this issue Aug 24, 2023 · 2 comments · Fixed by #99

Comments

@jorisnoo
Copy link

Although the plugin seems to work just fine, the following error is being thrown in Safari: Unhandled Promise Rejection: ReferenceError: Can't find variable: requestIdleCallback, as the browser does not support requestIdleCallback.

See a related issue: remix-run/indie-stack#124 where a possible fallback is being suggested.

Thanks for all your effort on this, much appreciated!

@daun
Copy link
Member

daun commented Aug 24, 2023

Wow, I just checked the caniuse page for requestIdleCallback and Safari has had support for this for more than three years now but it's still behind a feature flag 😩 Falling back to setTimeout should work here as well. Thanks for reporting!

@daun
Copy link
Member

daun commented Aug 24, 2023

Fixed and released as 3.2.3, thanks again for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants