Fix browser compatibility: guard requestIdleCallback and startViewTransition#1460
Fix browser compatibility: guard requestIdleCallback and startViewTransition#1460N2D4 wants to merge 1 commit into
Conversation
…nsition Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add feature checks for two browser APIs that aren't universally supported:
requestIdleCallback: Falls back tosetTimeouton browsers that don't support it (e.g. Safari)document.startViewTransition: Applies the theme change directly when the View Transitions API is unavailableLink to Devin session: https://app.devin.ai/sessions/c77b612db7834e9aa71c6b5a0fde316b
Requested by: @N2D4