Skip to content

Commit

Permalink
perf(ExternalResourceLink): add dns-prefetch for assets server
Browse files Browse the repository at this point in the history
  • Loading branch information
kubosho committed Sep 23, 2024
1 parent 427af20 commit 0d5bdc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/ExternalResourceLink.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { pathList } from '../../../constants/path_list';
import { FAVICON_URL } from '../../../constants/site_data';
import { ASSETS_URL, FAVICON_URL } from '../../../constants/site_data';
import { retrieveTranslation } from '../locales/i18n';
interface Props {
Expand All @@ -16,6 +16,7 @@ const webSiteTitle = retrieveTranslation('website.title');
<link rel="apple-touch-icon" href={FAVICON_URL} />
<link rel="icon" type="image/png" href={FAVICON_URL} />
<link rel="alternate" type="application/atom+xml" href={pathList.feed} title={webSiteTitle} />
<link rel="dns-prefetch" href={ASSETS_URL} />
<link rel="preload" as="style" href="/assets/styles/color_scheme.css" />
<link rel="stylesheet" href="/assets/styles/foundation.css" />
<link rel="stylesheet" href="/assets/styles/variables.css" />
Expand Down

0 comments on commit 0d5bdc8

Please sign in to comment.