remove roboto font (due to layout shift while loading)
This commit is contained in:
parent
bf5b2a96b5
commit
22a052c137
2 changed files with 3 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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('; '))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue