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

@@ -50,13 +50,13 @@ function Page() {
}} />
<Button onClick={submit}>submit</Button>
</Flex>
{gambar && <Image w={400} src={gambar || null} alt="gambar" />}
{gambar && <Image w={400} src={gambar || null} alt="gambar" loading="lazy"/>}
</Card>
<Text>Test</Text>
<SimpleGrid cols={6} p={"lg"}>
{listFile.map((v) => (
<Image key={v} src={v} alt="gambar" />
<Image loading="lazy" key={v} src={v} alt="gambar" />
))}
</SimpleGrid>
</Stack>