Skip to content

Commit 7587da0

Browse files
committed
fix: 🐛 make project and blog images priority
1 parent 4bdfffe commit 7587da0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ui/blog-entry.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default function BlogEntry({
2626
src={prevImgSrc}
2727
fill
2828
alt={alt}
29+
priority
2930
className="w-full h-full rounded-lg object-cover"
3031
/>
3132
</AspectRatio>

src/components/ui/project-button.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ export default function ProjectButton({
2727
const { resolvedTheme } = useTheme();
2828
const usingLight: boolean = resolvedTheme == "light" || resolvedTheme == "latte"
2929

30-
console.log(resolvedTheme == "light")
31-
3230
return (
3331
<a
3432
href={href}
@@ -44,6 +42,7 @@ export default function ProjectButton({
4442
src={imgSrc}
4543
alt={`An icon for Jacob Moy's project, ${title}.`}
4644
fill
45+
priority
4746
className={cn(
4847
"rounded-full",
4948
(!usingLight && "brightness-65")

0 commit comments

Comments
 (0)