Skip to content

Commit 825f257

Browse files
committed
feat: improves bookmarks preview rendering speed
1 parent a880629 commit 825f257

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pages/bookmarks.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const Bookmarks = ({ bookmarks }: BookmarksProps): JSX.Element => (
2828
<Container marginBottom="5rem">
2929
<Head>
3030
<title>Bookmarks</title>
31+
<link rel="preconnect" href="https://rdl.ink" />
3132
</Head>
3233
<Container alignItems="center" mb="3rem">
3334
<Title>Bookmarks</Title>
@@ -52,7 +53,9 @@ const Bookmarks = ({ bookmarks }: BookmarksProps): JSX.Element => (
5253
<Image
5354
layout="fill"
5455
objectFit="cover"
55-
src={`https://rdl.ink/render/${encodeURIComponent(url)}`}
56+
src={`https://rdl.ink/render/${encodeURIComponent(
57+
url,
58+
)}?width=400&height=150&mode=crop&format=avif`}
5659
alt={name}
5760
/>
5861
</Container>

0 commit comments

Comments
 (0)