Skip to content

Commit

Permalink
Merge pull request #12835 from m3tal10/fix-issue#8266
Browse files Browse the repository at this point in the history
Added lazy loading attribute to thumbnail image tags
  • Loading branch information
rtibbles authored Nov 19, 2024
2 parents 216bd26 + 9b7bb11 commit 4438ee2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
v-if="channel.thumbnail"
class="thumbnail"
:src="channel.thumbnail"
loading="lazy"
>
<KIcon
v-else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
v-if="channel.thumbnail"
class="thumbnail"
:src="channel.thumbnail"
loading="lazy"
>
<div class="channel-name">
<KTooltip
Expand Down
1 change: 1 addition & 0 deletions kolibri/plugins/learn/assets/src/views/CardList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
:alt="learnString('logo', { channelTitle: channelTitle })"
class="channel-logo"
:style="{ color: $themePalette.grey.v_800 }"
loading="lazy"
>
<p
v-else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
:src="channelThumbnail"
:alt="learnString('logo', { channelTitle: channelTitle })"
class="channel-logo"
loading="lazy"
>
</div>
<CardThumbnail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<img
:src="topic.thumbnail"
class="channel-logo"
loading="lazy"
>
</KGridItem>
</KGrid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class="image"
:src="thumbnailUrl"
alt=""
loading="lazy"
>
</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
class="image"
:src="thumbnailUrl"
alt=""
loading="lazy"
>
<slot name="labels"></slot>
</span>
Expand Down

0 comments on commit 4438ee2

Please sign in to comment.