Skip to content

Commit

Permalink
[fix] remove lazy-loading for the images on above-the-fold area
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-karlovskiy committed Jan 26, 2021
1 parent 3a30096 commit 7a2d846
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion components/Hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

<nuxt-img
v-if="backdrop"
loading="lazy"
:class="$style.image"
:alt="name"
:src="backdrop" />
Expand Down
1 change: 0 additions & 1 deletion components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

<nuxt-img
v-if="type === 'image' && activeItem && activeItem.src"
loading="lazy"
:src="activeItem.src" />
</div>

Expand Down
1 change: 0 additions & 1 deletion components/movie/MovieInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<div :class="$style.poster">
<nuxt-img
v-if="poster"
loading="lazy"
width="370"
height="556"
:src="poster"
Expand Down
5 changes: 3 additions & 2 deletions components/person/PersonInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<div :class="$style.poster">
<nuxt-img
v-if="avatar"
loading="lazy"
:src="avatar"
width="370"
height="556"
:src="avatar"
:alt="person.name" />

<span v-else>
Expand Down Expand Up @@ -37,6 +36,8 @@
<nuxt-img
v-if="avatar"
:src="avatar"
width="370"
height="556"
:alt="person.name" />
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-html="formatContent(person.biography)" />
Expand Down
1 change: 0 additions & 1 deletion components/tv/TvInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<div :class="$style.poster">
<nuxt-img
v-if="poster"
loading="lazy"
width="370"
height="556"
:src="poster"
Expand Down

0 comments on commit 7a2d846

Please sign in to comment.