mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
Add lazy loading to splatfest images to reduce concurrent requests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
94aa3d7ece
commit
6b686fb7f4
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<img :src="props.festival.image.url" />
|
<img :src="props.festival.image.url" loading="lazy" />
|
||||||
|
|
||||||
<div class="flex -mt-3 mb-4">
|
<div class="flex -mt-3 mb-4">
|
||||||
<template v-for="(team, i) in festival.teams" :key="team.id">
|
<template v-for="(team, i) in festival.teams" :key="team.id">
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<img :src="festival.image.url" />
|
<img :src="festival.image.url" loading="lazy" />
|
||||||
|
|
||||||
<div class="flex -mt-3 mb-4">
|
<div class="flex -mt-3 mb-4">
|
||||||
<template v-for="(team, i) in festival.teams" :key="team.id">
|
<template v-for="(team, i) in festival.teams" :key="team.id">
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="w-36 sm:mx-4 lg:-mx-1" />
|
<div class="w-36 sm:mx-4 lg:-mx-1" />
|
||||||
<template v-for="team in festival.teams" :key="team.id">
|
<template v-for="team in festival.teams" :key="team.id">
|
||||||
<div class="w-12 mx-2 sm:w-20 flex justify-center py-1 rounded-sm" :style="`background-color: ${toRgba(team.color)};`">
|
<div class="w-12 mx-2 sm:w-20 flex justify-center py-1 rounded-sm" :style="`background-color: ${toRgba(team.color)};`">
|
||||||
<img :src="team.image.url" class="w-6 h-6" />
|
<img :src="team.image.url" class="w-6 h-6" loading="lazy" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user