Skip to content

Commit f072dfa

Browse files
committed
Add dns prefetch for external resources
1 parent e74e173 commit f072dfa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/LinkDotNet.Blog.Web/Features/Components/OgData.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@
3737
var uri = new Uri(NavigationManager.Uri);
3838
return uri.GetLeftPart(UriPartial.Path);
3939
}
40-
4140
}

src/LinkDotNet.Blog.Web/Pages/_Layout.cshtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<meta name="theme-color" content="#ffffff" />
2020
<meta name="color-scheme" content="dark light" />
2121
<meta name="robots" content="max-image-preview:large" />
22+
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com" />
23+
<link rel="preconnect" href="//cdnjs.cloudflare.com" />
2224
<link rel="preload" href="css/fonts/icons.woff2" as="font" type="font/woff2" crossorigin />
2325
<link rel="preload" href="css/fonts/icons.woff" as="font" type="font/woff" crossorigin />
2426
<environment include="Development">

0 commit comments

Comments
 (0)