perf(ui): eager load header logo

This commit is contained in:
Jewgeni Lewash 2024-03-01 06:36:25 +01:00
parent 69ef8f9659
commit 25d7c75d94

View File

@ -31,7 +31,12 @@ import logoImage from '@/assets/images/logo.png';
href="/" href="/"
class="mr-4 block cursor-pointer py-1.5 font-sans text-base font-medium leading-relaxed text-inherit antialiased"> class="mr-4 block cursor-pointer py-1.5 font-sans text-base font-medium leading-relaxed text-inherit antialiased">
<div class="flex items-center gap-2 lg:gap-4"> <div class="flex items-center gap-2 lg:gap-4">
<Image src={logoImage} alt="Astro Deploy" class="-my-2 size-10 lg:-my-4 lg:size-14" /> <Image
src={logoImage}
alt="Astro Deploy"
class="-my-2 size-10 lg:-my-4 lg:size-14"
loading="eager"
/>
Astro Deploy Astro Deploy
</div> </div>
</a> </a>