mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-09 16:10:12 +00:00
preload fonts
This commit is contained in:
parent
caccfd2898
commit
19b432c509
|
@ -17,6 +17,8 @@
|
||||||
<link rel="icon" href="http://localhost:8080/assets/logo.webp" type="image/webp">
|
<link rel="icon" href="http://localhost:8080/assets/logo.webp" type="image/webp">
|
||||||
<link rel="apple-touch-icon" href="http://localhost:8080/assets/logo.webp" type="image/webp">
|
<link rel="apple-touch-icon" href="http://localhost:8080/assets/logo.webp" type="image/webp">
|
||||||
<link rel="apple-touch-startup-image" href="http://localhost:8080/assets/logo.webp" type="image/webp">
|
<link rel="apple-touch-startup-image" href="http://localhost:8080/assets/logo.webp" type="image/webp">
|
||||||
|
<link rel="preload" href="/assets/fonts/noto-sans-v27-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
|
||||||
|
<link rel="preload" href="/assets/fonts/noto-sans-v27-latin-700.woff2" as="font" type="font/woff2" crossorigin>
|
||||||
<link rel="stylesheet" href="/assets/dist/themes/default.css">
|
<link rel="stylesheet" href="/assets/dist/themes/default.css">
|
||||||
<link rel="stylesheet" href="/assets/dist/style.css">
|
<link rel="stylesheet" href="/assets/dist/style.css">
|
||||||
<title>GoToSocial Testrig Instance - GoToSocial</title>
|
<title>GoToSocial Testrig Instance - GoToSocial</title>
|
||||||
|
|
|
@ -4,17 +4,16 @@
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url('../fonts/noto-sans-v27-latin-regular.woff2') format('woff2'),
|
src: url('/assets/fonts/noto-sans-v27-latin-regular.woff2') format('woff2'),
|
||||||
url('../fonts/noto-sans-v27-latin-regular.woff') format('woff');
|
url('/assets/fonts/noto-sans-v27-latin-regular.woff') format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: do we really need to include the bold variant?
|
|
||||||
/* noto-sans-700 - latin */
|
/* noto-sans-700 - latin */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Noto Sans";
|
font-family: "Noto Sans";
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url('../fonts/noto-sans-v27-latin-700.woff2') format('woff2'),
|
src: url('/assets/fonts/noto-sans-v27-latin-700.woff2') format('woff2'),
|
||||||
url('../fonts/noto-sans-v27-latin-700.woff') format('woff');
|
url('/assets/fonts/noto-sans-v27-latin-700.woff') format('woff');
|
||||||
} */
|
}
|
||||||
|
|
Loading…
Reference in a new issue