#80 画像読込の優先度

このコミットが含まれているのは:
2025-07-21 17:25:18 +09:00
コミット f3bd9bea77
2個のファイルの変更10行の追加1行の削除
+4 -1
ファイルの表示
@@ -94,13 +94,16 @@ export default () => {
{posts.length
? (
<div className="flex flex-wrap gap-4 gap-y-8 p-4 justify-between">
{posts.map (post => (
{posts.map ((post, i) => (
<Link to={`/posts/${ post.id }`}
key={post.id}
className="w-40 h-40 overflow-hidden rounded-lg shadow-md hover:shadow-lg">
<img src={post.thumbnail || post.thumbnailBase || undefined}
alt={post.title || post.url}
title={post.title || post.url || undefined}
loading="eager"
fetchPriority="high"
decoding="async"
className="object-none w-full h-full" />
</Link>))}
</div>)