A curated collection of JavaScript snippets to measure and debug Web Performance directly in your browser's DevTools console.
| Category | What it includes |
|---|---|
| Core Web Vitals | LCP, CLS, INP - the metrics that impact SEO and user experience |
| Loading | TTFB, resource hints, scripts, fonts, images, render-blocking resources |
| Interaction | Long Animation Frames, event timing, responsiveness |
- Copy any snippet from webperf-snippets.nucliweb.net
- Open DevTools (
F12orCmd+Option+I/Ctrl+Shift+I) - Go to the Console tab
- Paste and press
Enter
Save frequently used snippets for quick access:
- Open DevTools → Sources tab → Snippets panel
- Click + New snippet
- Name it (e.g., "LCP")
- Paste the code
- Right-click → Run (or
Cmd+Enter/Ctrl+Enter)
Snippet.mp4
Visit webperf-snippets.nucliweb.net for the full documentation with all snippets.
- Web Vitals - Learn about Core Web Vitals
- Chrome DevTools - Official documentation