Measure, guide, fix: my Google DevFest 2026 Core Web Vitals workshop

"Measure first. Let the AI fix it. Then measure again." above a lab measurement table showing LCP, CLS and two INP rounds where yield-only stayed at 632 ms and rAF plus yield dropped to 32 ms.

DevFest 2026 slides, PDF and the broken Core Web Vitals sample from my workshop are now online.1,2,3 Modern Web Guidance 1.0 gives an AI coding agent better advice, yet one fix still left the page slow until a second trace caught it.

The short version: I ran the same five-step loop for LCP, INP and CLS on a local copy of my podcast site. Measure in Chrome DevTools, ask Antigravity in Plan mode, check the plan, apply the diff and measure again.

I ran this 60-minute workshop live on November 25, 2026 for GDG Live Indonesia’s DevFest Live Indonesia 2026 Ep. 1, building on my Modern Web Guidance notes and my Claude Code long-task experiment.4 You can read the slides online or clone the repo to try all three cases on your own machine.1,3

Interactive Slidev deck (open full screen or download PDF).

The twist: following the guide still left INP at 632 ms

I built the workshop around a local copy of my podcast site, Ngobrolin WEB (9,982 transcript lines), with three isolated Core Web Vitals faults in sample/starter/.3 On November 15, 2026 I measured every variant across five fresh runs in headless Chromium 156.0.8078.4 via Playwright 1.64.1 at 4x CPU slowdown (plus Slow 4G for LCP, because localhost hides image discovery delay):5

Lab medians from 5 headless Chromium 156 runs at 4x CPU: LCP on Slow 4G drops from 5,444 ms to 2,352 ms, INP goes from 1,944 ms to 632 ms (yield only) then 32 ms (rAF plus yield), and CLS drops from 0.131 desktop and 0.237 phone to 0.

Case 2 is the part I wanted everyone to feel. The starter search code already yielded while building an HTML string, then dumped 1,686 matching rows into innerHTML at once.5

In round 1, the fix followed break-up-long-tasks by inserting 100-row batches with scheduler.yield(), yet typing "coding" still took 632 ms because batches piled into a 560 ms layout pass before the browser painted.5,6,7 Adding await nextFrame() (requestAnimationFrame) before yielding let the browser draw each batch and dropped worst interaction to 32 ms with zero long tasks.5,8

LCP and CLS hit the same lesson in different ways. For LCP, optimize-image-priority recommends fetchpriority="high", but priority alone couldn’t help while JavaScript assigned the hero src late, so the image had to move into HTML first.9 For CLS, measuring required a hands-off reload so DevTools wouldn’t ignore the shift, and fixing it meant reserving responsive space for the late announcement across desktop and phone widths.5,10

Running the Core Web Vitals loop on your own laptop

Everything runs offline on Node.js 22.12 or newer with Antigravity (Gemini 4 Hydrogen, or agy --mode=plan in the terminal), Modern Web Guidance 1.0 (203 guides, shipped November 10, 2026) and Chrome DevTools.11,12,13

  1. Clone the repository, install dependencies and add Modern Web Guidance:
git clone https://github.com/ivankristianto/google-devfest-2026.git
cd google-devfest-2026
npm ci
npx modern-web-guidance@latest install
agy plugin install https://github.com/GoogleChrome/modern-web-guidance
npm run sample:serve
  1. Open http://127.0.0.1:4173/starter/ in Chrome, open the repo in Antigravity and follow workshop/prompts.md.12

I put an AGENTS.md file in the repo so the prompts stay short: it keeps edits inside sample/starter/, asks for a plan first and requires measuring before and after.14 Before clicking Proceed on any plan, check three things: does it fix what you measured, does the page still work the same, and does it name its guide? Each case also has a prepared folder under sample/reference/ if a run stalls.3

Every number above is a headless Chromium 156 lab measurement, not field Core Web Vitals (Google assesses real visits at the 75th percentile), and I haven’t measured total time to the last rendered search row or rerun the harness in headed Chrome.5,15

If you clone the repo, start with Case 2 and record round 1 before touching requestAnimationFrame. Watching a guide-backed fix stay slow is the quickest way to make recording twice a habit.

Sources