Skip to content

Commit 84c832d

Browse files
committed
optimize images
1 parent 1e11b01 commit 84c832d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/containers/Landing/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const HeroSection = () => {
107107
<Link href="https://todiagram.com?ref=jsoncrack.com">
108108
<Flex justify="center" fz="sm" c="gray.8" gap="8" align="center">
109109
built by
110-
<Image src="/assets/todiagram_logo.png" alt="Todiagram Logo" h={14} />
110+
<Image src="/assets/todiagram_logo.png" alt="Todiagram Logo" h={14} loading="eager" />
111111
</Flex>
112112
</Link>
113113
<StyledHeroTitle>Visualize JSON into interactive graphs</StyledHeroTitle>

src/containers/Landing/LovedBy.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const LovedBy = ({ stars }: LovedByProps) => {
9090
leftSection={
9191
<Image
9292
src="https://todiagram.com/logo.svg"
93+
loading="lazy"
9394
alt="Todiagram Logo"
9495
w={14}
9596
h={14}

src/containers/Landing/Section1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const Section1 = () => {
117117
</Link>
118118
</Stack>
119119
<StyledDottedContainer>
120-
<Image className="jc" src="/assets/jsoncrack.svg" alt="json crack" />
120+
<Image className="jc" src="/assets/jsoncrack.svg" alt="json crack" loading="lazy" />
121121
<JsonInput
122122
w={273}
123123
rows={12}

src/layout/JsonCrackLogo.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const JSONCrackLogo = ({ fontSize = "1.2rem", hideText, hideLogo, ...prop
4848
{!hideLogo && (
4949
<Image
5050
src="/assets/logo.svg"
51+
loading="eager"
5152
width={parseFloat(fontSize) * 18}
5253
height={parseFloat(fontSize) * 18}
5354
alt="logo"

0 commit comments

Comments
 (0)