Interaction
Layout Shift Loading and Interaction

Layout Shift Loading and Interaction

Print all the CLS metrics during page load and when the user interacts with the page:

Snippet

new PerformanceObserver((entryList) => {
  console.log(entryList.getEntries());
}).observe({ type: "layout-shift", buffered: true });