Measure Cumulative Layout Shift (CLS)
measure_layout_shiftMeasure cumulative layout shift on cold page load, pinpoint elements that jumped, and get a pass/fail verdict against Core Web Vitals thresholds.
Instructions
Cold-load CLS diagnostic: arms a layout-shift observer BEFORE the page parses, reloads, watches ~2s, then reports the aggregate score (good ≤ 0.10, poor > 0.25) and the exact elements that jumped, ranked by attributed shift — jank no static screenshot shows. Zero image tokens. Rebuilds a pristine page, discarding any in-page state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL to open, e.g. http://localhost:5173. | |
| maxCls | No | CI gate: FAIL when CLS exceeds this (0.1 is the Core Web Vitals bar). Omit to report without a verdict. | |
| viewport | No | Switch to this breakpoint first. Default: keep the current one. |