Skip to content

Commit

Permalink
feat: preload logo
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Feb 17, 2025
1 parent b983360 commit 4ca39d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/components/icons/Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
let { classNames = "" }: Props = $props();
</script>

<svelte:head>
<link
rel="preload"
href="{envPublic.PUBLIC_ORIGIN || page.url.origin}{base}/{envPublic.PUBLIC_APP_ASSETS}/logo.svg"
as="image"
type="image/svg+xml"
/>
</svelte:head>

{#if envPublic.PUBLIC_APP_ASSETS === "chatui"}
<svg
height="30"
Expand Down

0 comments on commit 4ca39d2

Please sign in to comment.