This directory contains code and answers for the Understanding INP codelab.
This directory contains two example pages to accompany the Measure performance with web-vitals.js, Google Analytics and BigQuery codelab.
basic.html
demonstrates adding theweb-vitals
library as a module and printing its output to the console.diagnostics.html
demonstrates usingweb-vitals
andPerformanceObserver
APIs to gather rich debugging information about Core Web Vitals metrics.
If you spot an issue with the example pages, please raise it using the Issues UI, or follow the contribute guide.