mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
fix: don't lazy load atf images
This commit is contained in:
@@ -12,14 +12,14 @@
|
|||||||
|
|
||||||
<div class="container mx-auto p-4 flex items-center justify-center mt-3">
|
<div class="container mx-auto p-4 flex items-center justify-center mt-3">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12">
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12">
|
||||||
@foreach($champions as $champion)
|
@foreach($champions as $key => $champion)
|
||||||
<div
|
<div
|
||||||
class="flex flex-col text-gray-700 bg-stone-800/40 shadow-md rounded-2xl bg-clip-border
|
class="flex flex-col text-gray-700 bg-stone-800/40 shadow-md rounded-2xl bg-clip-border
|
||||||
border border-stone-800 hover:border-orange-500/10 hover:shadow-orange-500/10">
|
border border-stone-800 hover:border-orange-500/10 hover:shadow-orange-500/10">
|
||||||
<div
|
<div
|
||||||
class="mx-4 mt-4 overflow-hidden h-52 rounded-2xl bg-clip-border border-2 border-orange-400/40">
|
class="mx-4 mt-4 overflow-hidden h-52 rounded-2xl bg-clip-border border-2 border-orange-400/40">
|
||||||
<img loading="lazy"
|
<img @if($key < 8) loading="auto" @else loading="lazy" @endif
|
||||||
src="//wsrv.nl/?url={{ $champion->getChampionImageAttribute() }}&w=400&output=webp&q=70"
|
src="//wsrv.nl/?url={{ $champion->getChampionImageAttribute() }}&w=400&output=webp&q=70"
|
||||||
class="object-cover w-full h-full"
|
class="object-cover w-full h-full"
|
||||||
alt="{{ $champion->name }} Splash Art"
|
alt="{{ $champion->name }} Splash Art"
|
||||||
/>
|
/>
|
||||||
@@ -38,7 +38,8 @@
|
|||||||
<span class="sr-only">{{$lane}}</span>
|
<span class="sr-only">{{$lane}}</span>
|
||||||
|
|
||||||
<img data-tooltip-target="tooltip-bottom-{{$lane}}" data-tooltip-placement="bottom"
|
<img data-tooltip-target="tooltip-bottom-{{$lane}}" data-tooltip-placement="bottom"
|
||||||
loading="lazy" src="{{$champion->lanes->getRoleIcon($lane)}}"
|
@if($key < 8) loading="auto" @else loading="lazy"
|
||||||
|
@endif src="{{$champion->lanes->getRoleIcon($lane)}}"
|
||||||
alt="{{$lane}} Icon"
|
alt="{{$lane}} Icon"
|
||||||
class="w-7 h-7 mr-1">
|
class="w-7 h-7 mr-1">
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user