Skip to content

Commit 3242342

Browse files
committed
perf: Uses sizes attribute on picture element
1 parent 0e3cd8b commit 3242342

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="hero__row">
66
<picture class="hero__img">
77
<source srcset="/me.webp" type="image/webp">
8-
<img src="/me.webp" alt="Jack Domleo portrait" height="300" width="300" loading="eager" fetchpriority="high" />
8+
<img src="/me.webp" alt="Jack Domleo portrait" height="300" width="300" loading="eager" fetchpriority="high" sizes="(min-width: 48em) 300px, 200px" />
99
</picture>
1010
<h1 class="hero__title">Jack Domleo</h1>
1111
</div>

0 commit comments

Comments
 (0)