0Pricing
Web Performance Optimization & Lighthouse · 강의

리소스 사전 로드와 힌트

preload, prefetch, preconnect 및 우선순위 힌트를 사용하여 핵심 경로 리소스를 더 일찍 가져오고 첫 의미 있는 페인트까지의 시간을 단축합니다.

리소스 사전 로드와 힌트은(는) CoddyKit의 무료 Web Performance Optimization & Lighthouse 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Web Performance Optimization & Lighthouse 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Web Performance Optimization & Lighthouse 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Helping the Browser Prioritize

The browser discovers resources as it parses HTML, but key assets like fonts or hero images may be found late. Resource hints let you tell the browser what to fetch early, shrinking the critical path.

preconnect

preconnect opens the DNS + TCP + TLS connection to an origin ahead of time, so the actual request starts faster. Ideal for font and CDN origins.

<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

dns-prefetch

dns-prefetch is a lighter hint that resolves only DNS. Use it as a fallback for browsers without preconnect or for many third-party origins.

<link rel="dns-prefetch" href="https://analytics.example.com">

preload

preload fetches a specific resource the current page needs soon, at high priority. Always set the correct as attribute so the browser assigns the right priority and reuses the fetch.

<link rel="preload" href="/fonts/inter.woff2" as="font" type="font/woff2" crossorigin>

Preloading the LCP Image

The hero image driving Largest Contentful Paint is often discovered late. Preloading it can cut LCP significantly.

<link rel="preload" href="/hero.webp" as="image" fetchpriority="high">

prefetch

prefetch fetches resources for a future navigation at low priority during idle time. Great for the next page a user is likely to visit.

<link rel="prefetch" href="/dashboard.js">

Priority Hints

The fetchpriority attribute nudges relative priority. Mark the hero image high and below-the-fold or non-critical assets low.

<img src="/hero.webp" fetchpriority="high" alt="Hero">
<img src="/footer-logo.png" fetchpriority="low" alt="Logo">

modulepreload

For ES modules, modulepreload preloads a module and its dependency graph, avoiding the waterfall of discovering imports one by one.

<link rel="modulepreload" href="/app.mjs">

Avoiding Over-Preloading

Hints compete for bandwidth. Preloading too much delays truly critical resources and can hurt performance. Preload only assets that are critical and discovered late.

Verifying Hints

Check the DevTools Network panel: preloaded resources show high priority and early start times. Lighthouse flags both missing preloads for the LCP element and unused preloads.

Choosing the Right Hint

  • preconnect warm up an origin.
  • preload critical asset for this page.
  • prefetch asset for the next page.
  • fetchpriority fine-tune relative order.

Quick Check

You want a hero image that drives LCP to download as early and as high priority as possible. Which hint fits best?

Recap

You learned to steer the critical path with resource hints: preconnect/dns-prefetch for connections, preload/modulepreload for current-page assets, prefetch for future pages, and fetchpriority to fine-tune. Use them sparingly and verify in DevTools.

자주 묻는 질문

“리소스 사전 로드와 힌트” 강의는 무료인가요?

네 — “리소스 사전 로드와 힌트” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Web Performance Optimization & Lighthouse 강의 전체를 잠금 해제할 수 있습니다. Web Performance Optimization & Lighthouse 강의에는 총 4개의 강의가 포함되어 있습니다.

“리소스 사전 로드와 힌트”에서 뭘 배우나요?

preload, prefetch, preconnect 및 우선순위 힌트를 사용하여 핵심 경로 리소스를 더 일찍 가져오고 첫 의미 있는 페인트까지의 시간을 단축합니다. 브라우저에서 직접 실행하는 실습 코드로 Web Performance Optimization & Lighthouse을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Web Performance Optimization & Lighthouse을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Web Performance Optimization & Lighthouse은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.

“리소스 사전 로드와 힌트” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Web Performance Optimization & Lighthouse 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Web Performance Optimization & Lighthouse 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 중요 경로 이해
  2. 렌더링 차단 리소스
  3. 속도를 위한 콘텐츠 우선순위 지정
  4. 리소스 사전 로드와 힌트
← Web Performance Optimization & Lighthouse(으)로 돌아가기