Skip to content

Commit d9a7839

Browse files
feat(performance): add resource hints for external AI API connections (#761)
* feat(performance): add resource hints for AI provider APIs Signed-off-by: Harshit Kumar <10harshitkumar@gmail.com> * Update index.html Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Harshit Kumar <10harshitkumar@gmail.com> * Update index.html (add dns-prefetch to rest of the providers) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Harshit Kumar <10harshitkumar@gmail.com> * fix(performance): remove OpenAI preconnect and trailing whitespace Signed-off-by: Harshit Kumar <10harshitkumar@gmail.com> --------- Signed-off-by: Harshit Kumar <10harshitkumar@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 99f2dea commit d9a7839

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
href="https://fonts.googleapis.com/css2?family=Rubik:wght@300..900&display=swap"
3838
rel="stylesheet"
3939
/>
40+
41+
<!-- Performance hints for AI provider APIs -->
42+
<link rel="dns-prefetch" href="https://api.openai.com" />
43+
<link rel="dns-prefetch" href="https://api.anthropic.com" />
44+
<link rel="dns-prefetch" href="https://generativelanguage.googleapis.com" />
45+
<link rel="dns-prefetch" href="https://api.mistral.ai" />
46+
<link rel="dns-prefetch" href="https://openrouter.ai" />
4047
</head>
4148
<body>
4249
<div id="root"></div>

0 commit comments

Comments
 (0)