# Interaction

> Source: <https://webperf-snippets.net/Interaction>

How the page responds once it has loaded: each interaction and its phases, the long tasks and long animation frames that block the main thread, the layout shifts, the scrolling, forced layouts and the size of the DOM. Not sure where to start? [Which snippet should I use?](https://webperf-snippets.net/which-snippet.md) goes from the symptom you see.

- [Interactions](https://webperf-snippets.net/Interaction/Interactions.md): Tracks every interaction as it happens and splits it into input delay, processing time and presentation delay, to debug INP.
- [Input latency breakdown](https://webperf-snippets.net/Interaction/Input-Latency-Breakdown.md): Aggregates interaction latency by event type and phase over time, to show whether clicks are slower than key presses and which phase is to blame.
- [Layout shift tracking](https://webperf-snippets.net/Interaction/Layout-Shift-Loading-and-Interaction.md): Logs every layout shift during load and interaction, with the elements that moved and when, to find what causes Cumulative Layout Shift.
- [Long animation frames (LoAF)](https://webperf-snippets.net/Interaction/Long-Animation-Frames.md): Tracks Long Animation Frames, the API behind INP debugging, to find the JavaScript and rendering work that blocks the main thread.
- [Long animation frames script attribution](https://webperf-snippets.net/Interaction/Long-Animation-Frames-Script-Attribution.md): Attributes the main-thread blocking time of long animation frames to scripts, grouped by origin: your code, framework, third parties, extensions.
- [LoAF helpers](https://webperf-snippets.net/Interaction/Long-Animation-Frames-Helpers.md): Utilities to analyze Long Animation Frames in depth: filter, summarize and export the frames and scripts the LoAF snippet records.
- [Long tasks](https://webperf-snippets.net/Interaction/LongTask.md): Tracks the tasks that block the main thread for more than 50 ms, which keep the page from responding to input and hurt Interaction to Next Paint.
- [Scroll performance analysis](https://webperf-snippets.net/Interaction/Scroll-Performance.md): Measures the frame rate and the dropped frames of scrolling, and finds the non-passive listeners and the CSS that make it stutter.
- [Forced synchronous layout detector](https://webperf-snippets.net/Interaction/Forced-Synchronous-Layout.md): Detects forced synchronous layout as it happens: JavaScript that reads the geometry of the page right after changing styles, forcing a layout.
- [DOM size and depth](https://webperf-snippets.net/Interaction/DOM-Size-and-Depth.md): Measures the number of DOM elements, the deepest nesting and the widest parent, open shadow roots included, against the Lighthouse thresholds.
