Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
/**
* Inline <head> script that lets streamed (Suspense) pages reveal while the
* browser tab is hidden (#16245).
*
* React Fizz's `$RC` reveal runtime gates the first boundary swap on
* requestAnimationFrame unless the global `$RT` is already a number; rAF never
* fires in a hidden/occluded tab, so "Loading OmniRoute..." stays forever.
* Seeding `$RT` while hidden makes `$RC` take the setTimeout path instead.
*
* Upstream: https://github.com/facebook/react/issues/36741 and
* https://github.com/vercel/next.js/issues/95588. Remove once Next's vendored
* React ships the fix.
*/
export const HIDDEN_TAB_REVEAL_SCRIPT =
'if (document.visibilityState === "hidden" && typeof window.$RT !== "number") window.$RT = performance.now();';