Add image preloading

This commit is contained in:
Moe Poi ~ 2024-03-27 01:36:29 +07:00
parent b8a34992f9
commit ce7fa0c934
Signed by: moepoi
GPG key ID: EADBACA726DD4853

View file

@ -4,6 +4,10 @@
import profile from '../lib/assets/profile.webp';
</script>
<svelte:head>
<link rel="preload" href="{profile}" as="image">
</svelte:head>
<NavBar isFixed={true} />
<div class="flex flex-col items-center justify-center h-screen flex-wrap">