remove roboto font (due to layout shift while loading)

This commit is contained in:
Chris Kruining 2024-11-21 20:32:29 +01:00
parent bf5b2a96b5
commit 22a052c137
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 3 additions and 7 deletions

View file

@ -1,5 +1,3 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght,GRAD@8..144,400,45;8..144,400,50;8..144,1000,0&family=Roboto+Serif:opsz,GRAD@8..144,71&display=swap");
:root {
--hue: 182.77deg;
--accent-ofset: 180;
@ -67,7 +65,7 @@ body {
margin: 0;
font-family: Roboto Flex, sans-serif;
font-family: sans-serif;
* {
box-sizing: border-box;

View file

@ -33,10 +33,8 @@ export default createHandler(({ nonce }) => {
const policies = {
default: base,
connect: `${base} ws://localhost:*`,
script: `${base}`,
style: `'self' data: https://fonts.googleapis.com 'unsafe-inline'`,
// style: `${base} data: https://fonts.googleapis.com`,
font: `${base} https://*.gstatic.com`,
style: `'self' data: 'unsafe-inline'`,
// style: `${base} data: `,
} as const;
event.response.headers.append('Content-Security-Policy', Object.entries(policies).map(([p, v]) => `${p}-src ${v}`).join('; '))