Skip to main content
← πŸ“„ HTML & the platformΒ·Module A7 Β· Lesson 13
TaskQuick recap. Build a head + body that proves you know the 4 perf basics. Head: viewport meta + preconnect to https://cdn.example.com (crossorigin). Body: <img src='/below.jpg' alt='Below' loading='lazy' width='800' height='600'> and a <picture> with one <source srcset='/hero-2x.webp' media='(min-width: 800px)'> plus an <img src='/hero.webp' alt='Hero' width='1200' height='630'> fallback.

Recap: Performance & loading

50 XP5 min
Theory

Quick recap β€” Module A7

12 lessons on shaving milliseconds. The 4 head-tags that survive every audit:

  1. `<meta name="viewport">` β€” mobile rendering at all (covered in A1, reused here).
  2. `<link rel="preconnect">` β€” warms TCP+TLS to a third-party origin before the first request.
  3. `<img loading="lazy">` β€” below-fold images don't block LCP.
  4. `<img srcset>` (or <picture>) β€” phones don't download desktop-resolution hero images.

If any feels random, redo A7-01 / A7-03 / A7-06 / A7-09 then come back.

πŸ”’

Sign up to start coding

Theory is open to everyone. The interactive editor, live preview, and check are unlocked with a 7-day free trial β€” card required, cancel anytime.

Sign up β€” free trial β†’

First 15 lessons in each track are free. No card needed for those.

← PreviousNext lesson β†’

Get one Python or web tip a day β€” by email

Short, hand-written, no spam. Unsubscribe in one click.