Added font preloading
All checks were successful
/ astro-check (push) Successful in 12s
/ get-version (push) Successful in 3s
/ check-tag (push) Successful in 3s
/ create-release (push) Successful in 8s
/ checking (push) Successful in 13s
/ build-site (push) Successful in 1m8s
/ auto-deploy-dockge (push) Successful in 9s
/ deploy-unlighthouse-files (push) Successful in 1m8s
/ unlighthouse (push) Successful in 52s
/ deploy-unlighthouse-site (push) Successful in 5s

This commit is contained in:
Firq 2024-10-02 00:01:21 +02:00
parent 747b1d78db
commit a8815648cb
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 15 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "fgo-ta-com-website", "name": "fgo-ta-com-website",
"type": "module", "type": "module",
"version": "0.2.2-pre.20", "version": "0.2.2-pre.21",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",

View file

@ -12,6 +12,15 @@
} }
] ]
}, },
{
"source": "**/*.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
},
{ {
"source": "404.html", "source": "404.html",
"headers": [ "headers": [

View file

@ -9,6 +9,9 @@ import databasestar from 'iconoir/icons/database-star.svg'
import mail from 'iconoir/icons/mail.svg' import mail from 'iconoir/icons/mail.svg'
import type { IconsLookup } from '../types/generic' import type { IconsLookup } from '../types/generic'
import workSans800 from '@fontsource/work-sans/files/work-sans-latin-800-normal.woff2?url';
import workSans600 from '@fontsource/work-sans/files/work-sans-latin-600-normal.woff2?url';
export interface Props { export interface Props {
title: string title: string
currentpage: string currentpage: string
@ -61,6 +64,8 @@ const mapped_navdata = navdata.map((item) => ({
<!-- Disable DarkReader, as site is already in dark mode --> <!-- Disable DarkReader, as site is already in dark mode -->
<meta name="darkreader-lock" content="this site only has darkmode"> <meta name="darkreader-lock" content="this site only has darkmode">
<!-- Links --> <!-- Links -->
<link rel="preload" as="font" type="font/woff2" href={workSans600} crossorigin="anonymous" />
<link rel="preload" as="font" type="font/woff2" href={workSans800} crossorigin="anonymous" />
<link rel="icon" type="image/ico" href="/favicon.ico" /> <link rel="icon" type="image/ico" href="/favicon.ico" />
<link rel="sitemap" href="/sitemap-index.xml" /> <link rel="sitemap" href="/sitemap-index.xml" />
<link href="https://mastodon.neshweb.net/@Firq" rel="me" /> <link href="https://mastodon.neshweb.net/@Firq" rel="me" />