Skip to content

Course

Web Performance Engineering

Measure real users first, then attack the sub-part that fails: TTFB chains, bundle budgets, image strategy, caching, fetch waterfalls, the main thread, CLS, and the guardrails that keep it fixed.

14 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

Measure First

What Core Web Vitals actually measure, how to collect field data, and the profiling loop that turns a bad number into a specific cause.

  1. 01Core Web Vitals: What the Numbers Actually MeanLCP, INP, and CLS as user experiences rather than scores — the thresholds, the p75 rule, and the LCP sub-parts that tell you where to dig.22mOpen
  2. 02Field Data: Instrumenting Real UsersCrUX tells you whether you have a problem; your own RUM with the web-vitals attribution build tells you why.24mOpen
  3. 03The Profiling Workflow That Finds the Real BottleneckFrom a bad field number to a specific line of code: reproduce the failing segment, read the waterfall and the trace, verify against field p75.25mOpen

The Loading Path

Bytes on the wire — JavaScript budgets, images that don't sabotage LCP, and caching that makes the second visit nearly free.

  1. 01TTFB: Redirects, Handshakes, and Server WorkTime to first byte is a chain of redirects, handshakes, and server compute — the Server-Timing header makes the server say which link is slow.20mOpen
  2. 02JavaScript Bundle BudgetsA 200 KB script costs nothing like a 200 KB image — see what's in the bundle, then enforce a compressed-size budget in CI.24mOpen
  3. 03Image Strategy: Formats, Sizing, and the LCP ImageThe LCP image must be discoverable, prioritized, correctly sized, and never lazy-loaded — the three rules that fix most image-driven LCP.23mOpen
  4. 04Caching and Delivery: Making the Second Visit FreeTwo-tier Cache-Control for fingerprinted assets vs. HTML, edge-cached HTML to kill distant TTFB, connection warmup, and the bfcache.24mOpen
  5. 05Speculation Rules: Prefetch and PrerenderChrome's Speculation Rules API lets the browser fetch or fully render the next page before the click — how to use it without phantom pageviews or request storms.18mOpen

Rendering and Responsiveness

Critical rendering path, main-thread work and INP, and the guardrails that stop next quarter's regressions.

  1. 01Rendering Paths: From HTML Bytes to First PixelsWhat blocks the first paint, how CSR/SSR/SSG/streaming change LCP, why hydration is a hidden INP tax, and where fonts fit.25mOpen
  2. 02Data Fetching Without WaterfallsSerial client-side fetches stack round trips — route loaders, parallel Promise.all, intent prefetch, and streaming turn the waterfall into a firehose.18mOpen
  3. 03INP and the Main ThreadInput delay, processing, and presentation delay — find the blocking script with LoAF, then do the visible update first and yield.25mOpen
  4. 04Third-Party Scripts: Other People's Main ThreadEvery tag is a deployment pipeline you don't control — the three bills they charge, facades and worker offload, and the governance that contains them.20mOpen
  5. 05CLS: Why the Page Moves and How to Pin ItImpact × distance per unexpected shift — the five real causes, reserved space, font metric matching, and finding the moving element with attribution.20mOpen
  6. 06Guardrails: Keeping It Fast After You Fix ItPerformance decays by default — lab assertions per PR, field alerts per release, third-party governance, and the habits that keep gains.21mOpen