From d0bd5db04463ac0129bc7c400a15dd867ffca80f Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Tue, 22 Jul 2025 14:47:49 +0000 Subject: [PATCH] chore: replace priority attribute with loading="eager" for images --- app/_data/FrontSection.tsx | 4 ++-- app/_data/TitleLogo.tsx | 2 +- app/_page_sections/ProjectsSection.tsx | 10 +++++++--- app/_page_sections/SkillsSection.tsx | 2 +- app/loading.tsx | 4 ++-- app/not-found.tsx | 2 +- app/resume/page.tsx | 2 +- 7 files changed, 15 insertions(+), 11 deletions(-) diff --git a/app/_data/FrontSection.tsx b/app/_data/FrontSection.tsx index db924a0..42c1ef5 100644 --- a/app/_data/FrontSection.tsx +++ b/app/_data/FrontSection.tsx @@ -23,8 +23,8 @@ const FrontSection: React.FC = () => (
- { - { + { + {
); diff --git a/app/_data/TitleLogo.tsx b/app/_data/TitleLogo.tsx index 1cb289e..247f9ae 100644 --- a/app/_data/TitleLogo.tsx +++ b/app/_data/TitleLogo.tsx @@ -9,7 +9,7 @@ const TitleLogo: React.FC = () => ( A fox jumping down, and a diagonal stripe in the background, forming letters X and F + loading="eager" />

xfox111 .net diff --git a/app/_page_sections/ProjectsSection.tsx b/app/_page_sections/ProjectsSection.tsx index 3bd5e41..8d53a7b 100644 --- a/app/_page_sections/ProjectsSection.tsx +++ b/app/_page_sections/ProjectsSection.tsx @@ -51,10 +51,14 @@ const ProjectsSection: React.FC = () =>

{ projects.map((project, index) => ) } + src={ projectsImg.src } alt={ projectsImg.alt } loading="eager" />
); diff --git a/app/_page_sections/SkillsSection.tsx b/app/_page_sections/SkillsSection.tsx index 0428100..6fdbc41 100644 --- a/app/_page_sections/SkillsSection.tsx +++ b/app/_page_sections/SkillsSection.tsx @@ -26,7 +26,7 @@ const SkillsSection: React.FC = () => { skills.map((i, index) => + hidden={ selection !== index } loading="eager" /> ) } { selection === 4 && diff --git a/app/loading.tsx b/app/loading.tsx index 6ed3c62..5dcb40f 100644 --- a/app/loading.tsx +++ b/app/loading.tsx @@ -5,8 +5,8 @@ import cls from "./loading.module.scss"; const LoadingPage: React.FC = () => (
- { - { + { + {
); diff --git a/app/not-found.tsx b/app/not-found.tsx index f807ffe..fe3db9e 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -24,7 +24,7 @@ const NotFoundPage: React.FC = () => (

404...

- { + {
diff --git a/app/resume/page.tsx b/app/resume/page.tsx index 8058b63..ba52cd3 100644 --- a/app/resume/page.tsx +++ b/app/resume/page.tsx @@ -25,7 +25,7 @@ const ResumePage: React.FC = () => (