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:
parent
133b9e64a8
commit
3c4ce677c3
2 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ interface Props {
|
|||
class="h-8 w-8 rounded-full"
|
||||
src={avatarSrc}
|
||||
alt="Avatar Description"
|
||||
loading={"eager"}
|
||||
inferSize
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -49,5 +49,6 @@ This is the full example:
|
|||
class={secondClass}
|
||||
draggable={"false"}
|
||||
format={"avif"}
|
||||
loading={"eager"}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue