Skip to content

Commit 7a2d846

Browse files
[fix] remove lazy-loading for the images on above-the-fold area
1 parent 3a30096 commit 7a2d846

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

components/Hero.vue

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737
<nuxt-img
3838
v-if="backdrop"
39-
loading="lazy"
4039
:class="$style.image"
4140
:alt="name"
4241
:src="backdrop" />

components/Modal.vue

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
<nuxt-img
4949
v-if="type === 'image' && activeItem && activeItem.src"
50-
loading="lazy"
5150
:src="activeItem.src" />
5251
</div>
5352

components/movie/MovieInfo.vue

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<div :class="$style.poster">
66
<nuxt-img
77
v-if="poster"
8-
loading="lazy"
98
width="370"
109
height="556"
1110
:src="poster"

components/person/PersonInfo.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
<div :class="$style.poster">
66
<nuxt-img
77
v-if="avatar"
8-
loading="lazy"
8+
:src="avatar"
99
width="370"
1010
height="556"
11-
:src="avatar"
1211
:alt="person.name" />
1312

1413
<span v-else>
@@ -37,6 +36,8 @@
3736
<nuxt-img
3837
v-if="avatar"
3938
:src="avatar"
39+
width="370"
40+
height="556"
4041
:alt="person.name" />
4142
<!-- eslint-disable-next-line vue/no-v-html -->
4243
<div v-html="formatContent(person.biography)" />

components/tv/TvInfo.vue

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<div :class="$style.poster">
66
<nuxt-img
77
v-if="poster"
8-
loading="lazy"
98
width="370"
109
height="556"
1110
:src="poster"

0 commit comments

Comments
 (0)