From 30246ae8047b091d5b759af792827d61d95587d6 Mon Sep 17 00:00:00 2001 From: becarta Date: Tue, 11 Feb 2025 00:41:16 +0100 Subject: [PATCH] updated image load behavior --- src/pages/de/index.astro | 9 ++++++++- src/pages/en/index.astro | 9 ++++++++- src/pages/nl/index.astro | 9 ++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/pages/de/index.astro b/src/pages/de/index.astro index b674d0c..fafeeab 100644 --- a/src/pages/de/index.astro +++ b/src/pages/de/index.astro @@ -70,7 +70,7 @@ const yearsSince = currentYear - fixedYear; image={{ src: HomePageImage, alt: 'Richard Bergsma lächelt in den Schweizer Alpen, während er Revella hält', - loading: 'eager', + loading: 'lazy', }} > @@ -171,6 +171,7 @@ const yearsSince = currentYear - fixedYear; image: { src: NexthinkAdministrator, alt: 'Nexthink Administrator Abzeichen', + loading: 'lazy', }, }, { @@ -180,6 +181,7 @@ const yearsSince = currentYear - fixedYear; image: { src: NexthinkAssociate, alt: 'Nexthink Associate Abzeichen', + loading: 'lazy', }, }, { @@ -189,6 +191,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftAssociate, alt: 'Microsoft Certified Associate Abzeichen', + loading: 'lazy', }, }, { @@ -198,6 +201,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftAssociate, alt: 'Microsoft Certified Associate Abzeichen', + loading: 'lazy', }, }, { @@ -207,6 +211,7 @@ const yearsSince = currentYear - fixedYear; image: { src: pcep, alt: 'PCEP™ – Zertifizierter Python-Programmierer (Einsteiger) Abzeichen', + loading: 'lazy', }, }, { @@ -216,6 +221,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftFundamentals, alt: 'Microsoft 365 Fundamentals Abzeichen', + loading: 'lazy', }, }, { @@ -225,6 +231,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftFundamentals, alt: 'Azure Fundamentals Abzeichen', + loading: 'lazy', }, }, ]} diff --git a/src/pages/en/index.astro b/src/pages/en/index.astro index 3656aa5..07c9b9f 100644 --- a/src/pages/en/index.astro +++ b/src/pages/en/index.astro @@ -73,7 +73,7 @@ const yearsSince = currentYear - fixedYear; image={{ src: HomePageImage, alt: 'Richard Bergsma smiling in the mountains of Switzerland holding Revella', - loading: 'eager', + loading: 'lazy', }} > @@ -172,6 +172,7 @@ const yearsSince = currentYear - fixedYear; image: { src: NexthinkAdministrator, alt: 'Nexthink Administrator badge', + loading: 'lazy', }, }, { @@ -181,6 +182,7 @@ const yearsSince = currentYear - fixedYear; image: { src: NexthinkAssociate, alt: 'Nexthink Associate badge', + loading: 'lazy', }, }, { @@ -190,6 +192,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftAssociate, alt: 'Microsoft Certified Associate badge', + loading: 'lazy', }, }, { @@ -199,6 +202,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftAssociate, alt: 'Microsoft Certified Associate badge', + loading: 'lazy', }, }, { @@ -208,6 +212,7 @@ const yearsSince = currentYear - fixedYear; image: { src: pcep, alt: 'PCEP™ – Certified Entry-Level Python Programmer badge', + loading: 'lazy', }, }, { @@ -217,6 +222,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftFundamentals, alt: 'Microsoft 365 Fundamentals badge', + loading: 'lazy', }, }, { @@ -226,6 +232,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftFundamentals, alt: 'Azure Fundamentals badge', + loading: 'lazy', }, }, diff --git a/src/pages/nl/index.astro b/src/pages/nl/index.astro index ae9d69f..2ed3ebc 100644 --- a/src/pages/nl/index.astro +++ b/src/pages/nl/index.astro @@ -74,7 +74,7 @@ const yearsSince = currentYear - fixedYear; image={{ src: HomePageImage, alt: 'Richard Bergsma die glimlacht in de bergen van Zwitserland terwijl hij Revella vasthoudt', - loading: 'eager', + loading: 'lazy', }} > @@ -173,6 +173,7 @@ const yearsSince = currentYear - fixedYear; image: { src: NexthinkAdministrator, alt: 'Nexthink Administrator-badge', + loading: 'lazy', }, }, { @@ -182,6 +183,7 @@ const yearsSince = currentYear - fixedYear; image: { src: NexthinkAssociate, alt: 'Nexthink Associate-badge', + loading: 'lazy', }, }, { @@ -191,6 +193,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftAssociate, alt: 'Microsoft Certified Associate-badge', + loading: 'lazy', }, }, { @@ -200,6 +203,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftAssociate, alt: 'Microsoft Certified Associate-badge', + loading: 'lazy', }, }, { @@ -209,6 +213,7 @@ const yearsSince = currentYear - fixedYear; image: { src: pcep, alt: 'PCEP™ – Gecertificeerd Entry-Level Python Programmeur-badge', + loading: 'lazy', }, }, { @@ -218,6 +223,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftFundamentals, alt: 'Microsoft 365 Fundamentals-badge', + loading: 'lazy', }, }, { @@ -227,6 +233,7 @@ const yearsSince = currentYear - fixedYear; image: { src: MicrosoftFundamentals, alt: 'Azure Fundamentals-badge', + loading: 'lazy', }, },