Skip to content

Commit 271e2e5

Browse files
authored
Merge pull request #225 from manNomi/fix/home_head
fix : head 부분 preload 제거 했습니다
2 parents 747cf28 + 6edb06e commit 271e2e5

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/app/(home)/_ui/PopularUniversitySection/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const PopularUniversitySection = ({ universities }: PopularUniversitySectionProp
1515
return (
1616
<div className="overflow-x-auto">
1717
<div className="flex gap-2">
18-
{/* 첫 4장은 즉시 전송 – LCP 후보 */}
18+
{/* 첫 3장은 즉시 전송 – LCP 후보 */}
1919
{aboveFold.map((university, index) => (
2020
<Link key={university.id} href={`/university/${university.id}`}>
2121
<div className="relative w-[153px]">
22-
<div className="relative w-[153px]">
22+
<div className="relative h-[120px] w-[153px] overflow-hidden rounded-lg bg-gray-200">
2323
<Image
2424
className="h-[120px] rounded-lg object-cover"
2525
src={
@@ -30,7 +30,7 @@ const PopularUniversitySection = ({ universities }: PopularUniversitySectionProp
3030
width={153}
3131
height={120}
3232
alt={`${university.koreanName || "대학교"} 배경 이미지`}
33-
priority={index === 0} // 첫 카드만 LCP 후보
33+
priority={index === 0}
3434
loading={index === 0 ? "eager" : "lazy"}
3535
fetchPriority={index === 0 ? "high" : "low"}
3636
sizes="153px"
@@ -61,7 +61,7 @@ const PopularUniversitiesBelowFold = ({ universities }: { universities: ListUniv
6161
{universities.map((university) => (
6262
<Link key={university.id} href={`/university/${university.id}`}>
6363
<div className="relative w-[153px]">
64-
<div className="relative w-[153px]">
64+
<div className="relative h-[120px] w-[153px] overflow-hidden rounded-lg bg-gray-200">
6565
<Image
6666
className="h-[120px] rounded-lg object-cover"
6767
src={
@@ -76,6 +76,8 @@ const PopularUniversitiesBelowFold = ({ universities }: { universities: ListUniv
7676
loading="lazy"
7777
fetchPriority="low"
7878
sizes="153px"
79+
placeholder="blur"
80+
blurDataURL="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAIAAoDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAhEAACAQMDBQAAAAAAAAAAAAABAgMABAUGIWGRkrHB0f/EABUBAQEAAAAAAAAAAAAAAAAAAAMF/8QAGhEAAgIDAAAAAAAAAAAAAAAAAAECEgMRkf/aAAwDAQACEQMRAD8AltJagyeH0AthI5xdrLcNM91BF5pX2HaH9bcfaSXWGaRmknyJckliyjqTzSlT54b6bk+h0R//2Q=="
7981
unoptimized={false}
8082
/>
8183
</div>

src/app/(home)/head.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const Head = async () => {
1212
? `${process.env.NEXT_PUBLIC_IMAGE_URL}/${recommendedColleges[0].backgroundImageUrl}`
1313
: "/images/default-university.jpg";
1414

15-
const preloadLink = <link rel="preload" as="image" href={lcpImage} fetchPriority="high" />;
1615

1716
/** ───── JSON‑LD 구조화 데이터 ───── */
1817
const structuredData =
@@ -33,9 +32,6 @@ const Head = async () => {
3332

3433
return (
3534
<>
36-
{/* LCP 이미지 Preload */}
37-
{preloadLink}
38-
3935
{/* JSON‑LD (뉴스 3개) */}
4036
{structuredData && (
4137
<script

0 commit comments

Comments
 (0)