fix(docs): theme flash + client-side navigation#217
Conversation
Move theme bootstrap before render-blocking font stylesheet; add critical body background rules; normalize stored theme; reapply on DOMContentLoaded and bfcache pageshow. Co-authored-by: Cursor <cursoragent@cursor.com>
Use ClientRouter for in-site link clicks instead of full document reloads. Reapply theme after view transitions swap root attributes; rebind navbar handlers on astro:page-load; delegate search modal to document listeners; reinit tabs and homepage install block on page-load. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ 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. Review rate limit: 0/1 reviews remaining, refill in 45 minutes and 25 seconds.Comment |
prefetch-all plus many doc links caused noisy background fetches and made the tab/URL UI feel like it was constantly updating. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
bodybackground rules, normalizelocalStoragetheme values, reapply onDOMContentLoaded/ bfcachepageshow, and onastro:after-swapso dark mode stays consistent during view transitions.ClientRouterso in-site doc links use client-side navigations instead of a full document reload. Rebind navbar listeners onastro:page-load, use document-level delegation for the search modal, and reinit tabs / homepage install section after navigations.Test plan
npm run dev— dark mode, click many doc sidebar links — no light flash, no full reload feel