0Pricing
Web Performance Optimization & Lighthouse · Ders

Önceden Yükleme ve Kaynak İpuçları

Kritik yol kaynaklarını daha erken getirmek ve ilk anlamlı görüntüleme süresini kısaltmak için preload, prefetch, preconnect ve öncelik ipuçlarını kullanın.

Önceden Yükleme ve Kaynak İpuçları, CoddyKit'te ücretsiz bir Web Performance Optimization & Lighthouse dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Web Performance Optimization & Lighthouse öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Web Performance Optimization & Lighthouse kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

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.

Sıkça Sorulan Sorular

“Önceden Yükleme ve Kaynak İpuçları” dersi ücretsiz mi?

Evet — “Önceden Yükleme ve Kaynak İpuçları” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Web Performance Optimization & Lighthouse kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Web Performance Optimization & Lighthouse kursu toplamda 4 dersten oluşur.

“Önceden Yükleme ve Kaynak İpuçları” dersinde ne öğreneceğim?

Kritik yol kaynaklarını daha erken getirmek ve ilk anlamlı görüntüleme süresini kısaltmak için preload, prefetch, preconnect ve öncelik ipuçlarını kullanın. Web Performance Optimization & Lighthouse ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

Web Performance Optimization & Lighthouse öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te Web Performance Optimization & Lighthouse, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.

“Önceden Yükleme ve Kaynak İpuçları” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu Web Performance Optimization & Lighthouse dersinde kod yazıp çalıştırabilir miyim?

Evet. Her Web Performance Optimization & Lighthouse dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. Kritik Yolu Anlama
  2. Oluşturmayı Engelleyen Kaynaklar
  3. Hız için İçeriğe Öncelik Verme
  4. Önceden Yükleme ve Kaynak İpuçları
← Web Performance Optimization & Lighthouse Sayfasına Dön