Fix All Image Add Lazy Loading

This commit is contained in:
2025-09-19 10:41:18 +08:00
parent 9f72e94557
commit 068d8b1077
180 changed files with 390 additions and 323 deletions

View File

@@ -51,7 +51,7 @@ function ArtikelKesehatanPage() {
onMouseLeave={(e) => (e.currentTarget.style.transform = 'translateY(0)')}
>
<Card.Section>
<Image src={item.image?.link} alt={item.title} height={200} fit="cover" />
<Image src={item.image?.link} alt={item.title} height={200} fit="cover" loading="lazy"/>
</Card.Section>
<Stack gap="xs" mt="md">
<Text fw="bold" fz="xl" c="dark">{item.title}</Text>

View File

@@ -108,6 +108,7 @@ function Page() {
src={v.image.link}
alt={v.name}
fit="cover"
loading="lazy"
/>
<Group justify="space-between" mt="sm">
<Text fw={700} fz="lg" c={colors['blue-button']}>

View File

@@ -107,6 +107,7 @@ function Page() {
h={140}
fit="contain"
radius="md"
loading="lazy"
/>
<Text ta="center" fw={700} fz="lg" c={colors['blue-button']}>
{v.name}

View File

@@ -108,6 +108,7 @@ function Page() {
h={160}
fit="contain"
radius="md"
loading="lazy"
/>
</Center>
<Stack gap={4} w="100%">

View File

@@ -98,6 +98,7 @@ export default function Page() {
w="100%"
h={180}
fit="cover"
loading="lazy"
/>
</Center>
<Flex align="center" gap="xs">

View File

@@ -49,6 +49,7 @@ function Page() {
w="100%"
maw={800}
fit="cover"
loading="lazy"
/>
) : (
<Skeleton h={300} w="100%" radius="xl" />

View File

@@ -131,6 +131,7 @@ export default function Page() {
radius="xl"
height={180}
fit="cover"
loading="lazy"
/>
<Box px="lg" pb="lg">
<Text

View File

@@ -91,6 +91,7 @@ function Page() {
radius="md"
height={160}
fit="cover"
loading="lazy"
/>
<Group justify="space-between">
<Text fw={600} fz="lg" lineClamp={1}>{v.name}</Text>