Skip to content

Commit 8cbae4f

Browse files
authored
doc: Don't optimise dependents' avatars (#654)
Trying to reduce the amount of requests to Vercel, particularly the image optimisation bandwidth. Images from GitHub are already sized the right way for a fixed target size.
1 parent a0cc24e commit 8cbae4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/docs/src/app/(pages)/_landing/dependents.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { cn } from '@/src/lib/utils'
2-
import Image from 'next/image'
32
import { z } from 'zod'
43

54
const dependentSchema = z.object({
@@ -94,10 +93,11 @@ export async function DependentsSection() {
9493
href={`https://github.com/${dep.owner}/${dep.name}`}
9594
className="relative h-8 w-8 rounded-full"
9695
>
97-
<Image
96+
<img
9897
src={upscaleGitHubAvatar(dep.avatarURL, 64)}
9998
alt={dep.owner + '/' + dep.name}
10099
className="rounded-full"
100+
loading="lazy"
101101
width={64}
102102
height={64}
103103
/>

0 commit comments

Comments
 (0)