Skip to content

Commit 63adb99

Browse files
committed
🎈 perf: imrpove webpagetest metrics
1 parent ebf6e44 commit 63adb99

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

src/components/Experience.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { HEADER_EXPERIENCE, EXPERIENCE } = Astro.props;
2929
<li class=" mb-20 ms-8">
3030
<div class="flex flex-row items-center">
3131
<div class="absolute start-[-0.9rem] mb-1 overflow-hidden rounded-full border border-teal-200 bg-slate-50 shadow-lg shadow-teal-800/90">
32-
<img class="size-7" src={`/images/${job.logoFile}`} alt={job.logoAlt} />
32+
<img class="size-7" src={`/images/${job.logoFile}`} alt={job.logoAlt} loading="lazy" />
3333
</div>
3434
<h3 class="reveal-experience-info my-0.5 text-xl font-semibold text-teal-200">
3535
{job.ocupation}

src/components/Header/Header.astro

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -207,24 +207,28 @@ const headerLinks = [
207207
id="nav-columnar-menu-list"
208208
class="flex list-none flex-col items-center p-0 text-xl"
209209
>
210-
<SideBarLink
211-
href="#"
212-
aria-label={HEADER_HOME_ARIA_LABEL}
213-
label={HEADER_HOME}
214-
>
215-
<IconContainer class="h-7 w-7">
216-
<IconHome />
217-
</IconContainer>
218-
</SideBarLink>
210+
<li>
211+
<SideBarLink
212+
href="#"
213+
aria-label={HEADER_HOME_ARIA_LABEL}
214+
label={HEADER_HOME}
215+
>
216+
<IconContainer class="h-7 w-7">
217+
<IconHome />
218+
</IconContainer>
219+
</SideBarLink>
220+
</li>
219221
{
220222
headerLinks.map((headerLink) => {
221223
const { icon, ...sideBarLink } = headerLink;
222224
return (
223-
<SideBarLink {...sideBarLink}>
224-
<IconContainer class=" h-7 w-7">
225-
<headerLink.icon />
226-
</IconContainer>
227-
</SideBarLink>
225+
<li>
226+
<SideBarLink {...sideBarLink}>
227+
<IconContainer class=" h-7 w-7">
228+
<headerLink.icon />
229+
</IconContainer>
230+
</SideBarLink>
231+
</li>
228232
);
229233
})
230234
}

src/layouts/Layout.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
1616
<html lang={SEO_LANG}>
1717
<head>
1818
<meta charset="UTF-8" />
19-
<meta name="viewport" content="width=device-width" />
19+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2020
<meta name="description" content={SEO_DESCRIPTION} />
2121
<meta
2222
name="keywords"
2323
content="HTML,CSS,JavaScript,Github,Repository,Portfolio,Website,Github Page,Cuvimaker,Rusty Copier,Vue Fluid DnD, Fluid DnD"
2424
/>
2525
<meta name="author" content="carlosjorger" />
26-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2726
<meta property="og:locale" content={SEO_LOCALE} />
2827
<meta property="og:url" content="https://carlosjorger.github.io" />
2928
<meta property="og:type" content="website" />
@@ -71,7 +70,8 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
7170
</head>
7271
<script
7372
src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.0/flowbite.min.js"
74-
is:inline></script>
73+
is:inline
74+
defer></script>
7575
<slot name="structured-data" />
7676
<body>
7777
<ViewTransitions />

0 commit comments

Comments
 (0)