web_vitals
Collect real user Core Web Vitals (LCP, CLS, INP, FCP, TTFB) by injecting Google's library. Call after page interaction for genuine metric signals.
Instructions
Collect Core Web Vitals (LCP, CLS, INP, FCP, TTFB) via web-vitals v4.
Injects Google's official web-vitals library from CDN, listens for each
metric, returns after all expected metrics fire or timeout elapses.
Best practice: call after the page has been interacted with (scrolled,
clicked) so INP and CLS have real signal.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |