Add "eager" loading to images in TabContent and TestimonialItem

Added "eager" loading attribute to the image tags in two Astro components: TabContent and TestimonialItem. This optimization allows images to load immediately as soon as the page starts loading, improving the user's visual experience when first accessing the page.
This commit is contained in:
Emil Gulamov 2024-03-11 22:09:59 +04:00
parent 133b9e64a8
commit 3c4ce677c3
2 changed files with 2 additions and 0 deletions

View file

@ -38,6 +38,7 @@ interface Props {
class="h-8 w-8 rounded-full"
src={avatarSrc}
alt="Avatar Description"
loading={"eager"}
inferSize
/>
</div>

View file

@ -49,5 +49,6 @@ This is the full example:
class={secondClass}
draggable={"false"}
format={"avif"}
loading={"eager"}
/>
</div>