Skip to content

Commit 9395374

Browse files
committed
perf: defer offscreen images
1 parent 9a04493 commit 9395374

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/algora_web/live/home_live.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ defmodule AlgoraWeb.HomeLive do
308308
<img
309309
class="aspect-[1200/500] object-cover object-top w-full rounded-xl lg:rounded-2xl"
310310
src={~p"/images/people/golem-team.jpeg"}
311-
alt="KubeCon"
311+
alt="Golem Team"
312+
loading="lazy"
312313
/>
313314
<div class="pt-8 grid grid-cols-1 items-center gap-x-16 gap-y-8 lg:grid-cols-12">
314315
<div class="lg:col-span-6 order-last lg:order-first">
@@ -317,7 +318,7 @@ defmodule AlgoraWeb.HomeLive do
317318
</h3>
318319
<div class="flex flex-wrap items-center gap-x-8 gap-y-4 pt-4 sm:pt-6">
319320
<div class="flex items-center gap-4">
320-
<img src="https://github.com/mschuwalow.png" class="h-12 w-12 rounded-full" />
321+
<img src="https://github.com/mschuwalow.png" class="h-12 w-12 rounded-full" loading="lazy" />
321322
<div>
322323
<div class="text-xl sm:text-2xl font-semibold text-foreground">
323324
Maxim Schuwalow
@@ -338,6 +339,7 @@ defmodule AlgoraWeb.HomeLive do
338339
<img
339340
src={~p"/images/people/john-de-goes.jpg"}
340341
class="h-12 w-12 rounded-full"
342+
loading="lazy"
341343
/>
342344
343345
<div>

0 commit comments

Comments
 (0)