aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-03-18 17:30:48 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-03-19 01:31:59 +0100
commit9489f513a8f5ba4dbab7283c9715953c77c7c526 (patch)
tree1389accffec1b3c48cc731f34476b85d7efa67a2
parentDo not embed assets with url-loader (diff)
downloadblog-9489f513a8f5ba4dbab7283c9715953c77c7c526.tar.gz
blog-9489f513a8f5ba4dbab7283c9715953c77c7c526.tar.zst
blog-9489f513a8f5ba4dbab7283c9715953c77c7c526.zip
Improve LCP time
See https://johnnyreilly.com/docusaurus-improve-core-web-vitals-fetchprio
-rw-r--r--src/components/landing/sections/Hero.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/landing/sections/Hero.tsx b/src/components/landing/sections/Hero.tsx
index ee11048..b4be44d 100644
--- a/src/components/landing/sections/Hero.tsx
+++ b/src/components/landing/sections/Hero.tsx
@@ -34,6 +34,7 @@ export default function Hero() {
34 width={avatar.width} 34 width={avatar.width}
35 height={avatar.height} 35 height={avatar.height}
36 sizes="(min-width: 1384px) 298px, (min-width: 996px) calc(25vw - 48px), (min-width: 300px) 298px, calc(100vw - 32px)" 36 sizes="(min-width: 1384px) 298px, (min-width: 996px) calc(25vw - 48px), (min-width: 300px) 298px, calc(100vw - 32px)"
37 fetchPriority="high"
37 alt="My photo" 38 alt="My photo"
38 className={styles.avatar__image} 39 className={styles.avatar__image}
39 /> 40 />