Description
WebPerf Snippets is a collection of tested JavaScript snippets that measure and debug web performance. Each snippet runs in the browser. You can paste it into the DevTools console, save it as a DevTools snippet, or let an AI agent run it. The site says the code is the same every time, whichever way it runs. The snippets cover Core Web Vitals, including CLS, INP and LCP with its subparts, along with loading metrics such as TTFB and FCP. They also check script loading, render-blocking resources, resource hints, preloads, fonts, lazy-loaded images, content visibility, critical CSS, service workers, cache strategy, compression, server timing, speculation rules and third-party impact by domain. Interaction snippets measure input latency, layout shifts, long animation frames, long tasks, scroll performance and forced synchronous layouts. Other snippets audit images and video elements and the DOM size and depth. An MCP server and agent skills let an AI assistant run the snippets, and there is a command-line tool. A DevTools extension is in beta. The site includes a video tutorial, a guide to choosing a snippet, and requirements for each method.…
Highlights
- Tested snippets for Core Web Vitals and loading metrics
- Run in DevTools or by an AI agent
- Checks scripts, fonts, images, caching and third-party impact
- Interaction snippets for input latency and long tasks
- MCP server, agent skills and a CLI
Ratings & Reviews
No ratings yet
Be the first to rate WebPerf Snippets.
People also visit
WebPerf Snippets FAQ
What are the snippets for?
Measuring and debugging web performance, such as LCP, INP, CLS and render-blocking resources.
How can I run them?
Paste them into the DevTools console, save them as a DevTools snippet, use the MCP server or agent skills with an AI assistant, or use the CLI.
Does it need a browser extension?
No. The site lists a DevTools extension, but it is in beta, and the snippets work without it.
Do I need an AI tool to use it?
No. You can run each snippet yourself in DevTools.
Where is the source?
On GitHub at nucliweb/webperf-snippets, under the license linked from the site.
What are the best WebPerf Snippets alternatives?
Popular alternatives to WebPerf Snippets include Lighthouse Metrics, PageSpeed Insights and Web Performance Research. See all WebPerf Snippets alternatives










