Compare commits

2 Commits

Author SHA1 Message Date
ee2aff46a1 perf: preload crosses font on glaube pages
All checks were successful
CI / update (push) Successful in 1m29s
Add preload hint to fetch the crosses.woff2 font early,
improving First Contentful Paint on /glaube routes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 10:35:04 +01:00
8398bc9b14 refactor: remove duplicate crosses font-face declaration
The crosses font is already defined in app.css which loads globally,
so the duplicate in rosenkranz.css is unnecessary.
2026-01-26 10:32:33 +01:00
2 changed files with 3 additions and 8 deletions

View File

@@ -1,11 +1,3 @@
@font-face {
font-family: 'crosses';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/fonts/crosses.woff2) format('woff2'),
url(/fonts/crosses.ttf) format('truetype');
}
@font-face { @font-face {
font-family: 'LibertineMinimal'; font-family: 'LibertineMinimal';
font-style: normal; font-style: normal;

View File

@@ -10,6 +10,9 @@ function isActive(path) {
return currentPath.startsWith(path); return currentPath.startsWith(path);
} }
</script> </script>
<svelte:head>
<link rel="preload" href="/fonts/crosses.woff2" as="font" type="font/woff2" crossorigin>
</svelte:head>
<Header> <Header>
{#snippet links()} {#snippet links()}
<ul class=site_header> <ul class=site_header>