Skip to content

Commit

Permalink
perf: use image lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 20, 2024
1 parent ce0d8ea commit 52ff12b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/AppHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/>
</div>
<img
:src="`hero-starter.svg`"
src="/hero-starter.svg"
width="385"
height="216"
class="hidden md:block w-full h-full justify-self-center md:justify-self-end md:col-span-3"
Expand Down
1 change: 1 addition & 0 deletions components/NuxtDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const links = [
:aria-label="link.arialabel"
>
<img
loading="lazy"
class="text-white w-6 h-6 self-center"
src="/nuxt.svg"
>
Expand Down
1 change: 1 addition & 0 deletions components/StarterCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const command = computed(() => {
<div class="flex flex-col gap-y-4 justify-center items-center w-full">
<img
:src="starter.image"
loading="lazy"
width="40"
height="40"
:alt="starter.name"
Expand Down

0 comments on commit 52ff12b

Please sign in to comment.