Web Performance

Make websites fast and light for real users on mobile data: page loading, Core Web Vitals, images, fonts, compression, caching, CDNs and budgets.

  • 0 students
  • 81 lessons
  • 5 h 47 min

Created by Ayim Nelson

What you will learn

  • Explain why speed and page weight matter for users on mobile data and budget phones
  • Describe the critical rendering path and what blocks rendering
  • Measure a page with the Network and Performance panels, Lighthouse and field data
  • Grade LCP, INP and CLS against the current Core Web Vitals thresholds
  • Serve images and fonts at the right size, format and priority
  • Cut CSS and JavaScript cost with minifying, defer, code splitting and less unused code
  • Set up compression, Cache-Control, hashed files and a CDN
  • Use HTTP/2, HTTP/3, resource hints and performance budgets well

About this course

A slow, heavy website costs your visitors time and money, especially on mobile data and budget phones. This course shows how a page really loads, how to measure it with DevTools, Lighthouse and field data, and how to judge it with today's Core Web Vitals: LCP, INP and CLS. Then it works through the fixes that matter most: images, fonts, CSS and JavaScript, compression, caching, CDNs, HTTP/2 and HTTP/3, resource hints and performance budgets. Each section ends with a small exercise, mostly in Python, that turns the idea into numbers.

For: learners who have done the HTML, CSS and JavaScript crash courses and want their sites to be fast for real users. "How the Web Works" is a helpful extra, and you'll need basic Python for the exercises.

By the end: you'll be able to read a waterfall, grade a page's Web Vitals, fix its biggest problems, set up sensible caching, and you'll have written small Python tools that work out page cost in cedis, critical paths, srcset choices, cache freshness and budget checks.

Course content

11 sections · 81 lessons

Why speed matters6 lessons
How a page loads8 lessons
  • From HTML to pixelsReading · 3 min
  • The DOM and the CSSOMReading · 3 min
  • Render-blocking CSSReading · 3 min
  • Parser-blocking JavaScriptReading · 3 min
  • defer and asyncReading · 3 min
  • The critical pathReading · 3 min
  • Reading a waterfallReading · 3 min
  • A critical path calculatorExercise · 12 min
Measuring performance9 lessons
  • Measure before you fixReading · 3 min
  • The Network panelReading · 3 min
  • Throttling the network and CPUReading · 3 min
  • The Performance panelReading · 3 min
  • LighthouseReading · 3 min
  • Lab data and field dataReading · 3 min
  • PageSpeed Insights and CrUXReading · 3 min
  • Measuring in JavaScriptReading · 3 min
  • Summarising a network logExercise · 12 min
Core Web Vitals9 lessons
  • What Core Web Vitals areReading · 3 min
  • The 75th percentileReading · 3 min
  • Largest Contentful Paint (LCP)Reading · 3 min
  • Improving LCPReading · 3 min
  • Interaction to Next Paint (INP)Reading · 3 min
  • Improving INPReading · 3 min
  • Cumulative Layout Shift (CLS)Reading · 3 min
  • Improving CLSReading · 3 min
  • Grading Web VitalsExercise · 12 min
Images9 lessons
  • Why images matter mostReading · 3 min
  • Choosing an image formatReading · 3 min
  • Modern formats with a fallbackReading · 3 min
  • Right-sizing imagesReading · 3 min
  • srcset and sizesReading · 3 min
  • Width and height stop layout shiftReading · 3 min
  • Lazy-loading imagesReading · 3 min
  • fetchpriority for the LCP imageReading · 3 min
  • Picking a srcset candidateExercise · 12 min
Fonts6 lessons
  • What web fonts costReading · 3 min
  • font-displayReading · 3 min
  • Preloading a fontReading · 3 min
  • Subsetting fontsReading · 3 min
  • System fontsReading · 3 min
  • Which font files download?Exercise · 12 min
CSS and JavaScript7 lessons
  • Minifying CSS and JavaScriptReading · 3 min
  • Unused CSS and JavaScriptReading · 3 min
  • Code splittingReading · 3 min
  • Loading code on demandReading · 3 min
  • Third-party scriptsReading · 3 min
  • Critical CSSReading · 3 min
  • A tiny CSS minifierExercise · 12 min
Compression6 lessons
  • Text compressionReading · 3 min
  • gzipReading · 3 min
  • BrotliReading · 3 min
  • Content-EncodingReading · 3 min
  • What not to compressReading · 3 min
  • Is it worth compressing?Exercise · 12 min
Caching and CDNs8 lessons
  • Why caching mattersReading · 3 min
  • Cache-Control and max-ageReading · 3 min
  • no-cache and no-storeReading · 3 min
  • ETag and 304 Not ModifiedReading · 3 min
  • Hashed file names and immutableReading · 3 min
  • A caching planReading · 3 min
  • CDNsReading · 3 min
  • Fresh or stale?Exercise · 12 min
HTTP/2, HTTP/3 and resource hints7 lessons
  • HTTP/1.1 and its limitsReading · 3 min
  • HTTP/2Reading · 3 min
  • HTTP/3 and QUICReading · 3 min
  • preconnectReading · 3 min
  • preloadReading · 3 min
  • Don't overuse hintsReading · 3 min
  • Tune a page's headExercise · 12 min
Performance budgets6 lessons
  • What a performance budget isReading · 3 min
  • Kinds of budgetsReading · 3 min
  • Checking budgets automaticallyReading · 3 min
  • A checklist for fast pagesReading · 3 min
  • A budget checkerExercise · 12 min
  • Final quizQuiz · 10 min

Reviews

No reviews yet.

Comments

Log in to join the conversation.

Loading comments...