astro-webvitalsv0.5.0

Live demo

This page renders <WebVitals consent={false} debug endpoint=… />. Until you allow measurement, no observer runs and nothing is recorded. Afterwards the debug overlay opens and every report the component sends appears below, byte for byte.

Note

Nothing leaves your browser: requests to /astro-webvitals/demo/report are answered on this page, because GitHub Pages cannot store them. On your site they go to your own route.

Consent, measurement, report

Allow measurement, then click, scroll or switch tabs: LCP and INP are finalised by your input, and a batch is sent every three seconds.

Reload with a query string

Waiting for consent — nothing is measured.

Metrics in this page

From the webvitals:metric event.

  • None yet.

Last report to the endpoint

No report sent yet.

{ }

What to look for

Privacy and consent ·Reporting to an endpoint