0Pricing
Web Performance Optimization & Lighthouse · Lezione

Anatomia del caricamento di una pagina

Ripercorra ciò che accade realmente tra la digitazione di un URL e la visualizzazione di una pagina completamente interattiva, per capire dove si guadagnano o si perdono prestazioni.

Anatomia del caricamento di una pagina è una lezione Web Performance Optimization & Lighthouse gratuita su CoddyKit. Questa è la lezione 4 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Web Performance Optimization & Lighthouse, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Web Performance Optimization & Lighthouse include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

From URL to Pixels

A page load runs a fixed sequence: DNS, TCP/TLS handshake, request, response, parse, render, interactivity. Each step adds latency — and shows you where to optimize.

DNS Resolution

First the browser resolves a hostname to an IP via DNS. A cold lookup can cost 20-120ms; caching and dns-prefetch cut it down.

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

Connection Setup

Next come the TCP and TLS handshakes — round trips that hurt on high-latency networks. preconnect warms the connection in advance.

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

Time To First Byte (TTFB)

TTFB measures the wait until the response's first byte arrives. It captures network latency plus server time, and delays everything after it.

Parsing the HTML

As bytes arrive, the browser parses HTML into the DOM tree. It also finds linked CSS and JS, which can pause parsing (render-blocking).

Building the Render Tree

The browser merges the DOM with the CSSOM into a render tree, then runs layout (geometry) and paint (pixels) to put content on screen.

First Contentful Paint

First Contentful Paint (FCP) is the first moment the user sees any text or image — the earliest real signal the page is loading.

JavaScript Execution

Scripts must be parsed, compiled, and run on the main thread. Heavy JavaScript blocks rendering and input, dragging down interactivity.

Reaching Interactivity

The page is truly usable only when the main thread is free for clicks. Time to Interactive and Total Blocking Time capture this final stage.

Inspecting the Timeline

DevTools' Performance panel and the PerformanceNavigationTiming API expose every phase — DNS, connection, TTFB, paint — for precise measurement.

const nav = performance.getEntriesByType('navigation')[0];
console.log('TTFB:', nav.responseStart);
console.log('DOM done:', nav.domContentLoadedEventEnd);

Where to Optimize

Optimize by layer: prefetch and CDN for network, caching to cut TTFB, fewer render-blocking assets, and smaller, deferred JavaScript.

Quick Check

Which metric measures the delay until the first byte of the server response arrives?

Recap

You traced a load from DNS through connection, TTFB, parsing, render tree, FCP, JS, and interactivity. Each phase shows where to reclaim seconds.

Domande Frequenti

La lezione «Anatomia del caricamento di una pagina» è gratuita?

Sì — il testo completo di «Anatomia del caricamento di una pagina» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Web Performance Optimization & Lighthouse, passa a CoddyKit PRO. Il corso Web Performance Optimization & Lighthouse include 4 lezioni in totale.

Cosa imparerò in «Anatomia del caricamento di una pagina»?

Ripercorra ciò che accade realmente tra la digitazione di un URL e la visualizzazione di una pagina completamente interattiva, per capire dove si guadagnano o si perdono prestazioni. Eserciti Web Performance Optimization & Lighthouse con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Web Performance Optimization & Lighthouse?

Non è richiesta alcuna esperienza precedente. Web Performance Optimization & Lighthouse su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 4 di 4.

Quanto tempo richiede la lezione «Anatomia del caricamento di una pagina»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Web Performance Optimization & Lighthouse?

Sì. Ogni lezione Web Performance Optimization & Lighthouse include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Che cos'è la web performance?
  2. Perché le prestazioni sono importanti
  3. Metriche chiave delle prestazioni
  4. Anatomia del caricamento di una pagina
← Torna a Web Performance Optimization & Lighthouse