Web performance: measuring the moment the visitor came for on slow networks, field numbers next to lab numbers, content in the first response, a client entry point per audience, early hydration, fewer startup files, the stylesheet first, fewer bytes, preloading on intent, reusing the server's data in the browser, parallel upstream requests, and the server's event loop. Load when building or changing web pages, their build, or the server that renders them.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Web Performance?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/the-up-web-performance)
---
name: web-performance
description: "Web performance: measuring the moment the visitor came for on slow networks, field numbers next to lab numbers, content in the first response, a client entry point per audience, early hydration, fewer startup files, the stylesheet first, fewer bytes, preloading on intent, reusing the server's data in the browser, parallel upstream requests, and the server's event loop. Load when building or changing web pages, their build, or the server that renders them."
---
# Web Performance
- Measure the moment the visitor came for, such as the first product or post on screen, not only first contentful paint, which a splash screen or a skeleton flatters. Measure with an empty cache on a slow profile too, for example a 150 ms round trip, 1.6 Mbps down, and a 4× CPU slowdown.
- Put field numbers next to lab numbers: report Core Web Vitals (LCP, INP, CLS), FCP, and TTFB from real visits, and run Lighthouse CI on the pull requests that can affect the pages. Compare a change over repeated, interleaved runs, call it a gain or a regression only when the difference holds across the runs, and report regressions next to gains.
- On public pages, send the content in the first response: render it on the server and stream it, as the [Rendering](../rendering/SKILL.md) rules describe. An application shell that waits for JavaScript and then asks the API costs a round trip at every step, and slow networks pay for each one.
- Give each audience its own client entry point, such as signed-out and signed-in, so that a public page downloads only the code it needs.
- With streamed HTML, load the entry script as an async module, so that the page shell hydrates as soon as the script arrives and each streamed part hydrates when its HTML lands, instead of waiting for the whole document.
- Keep the number of files a page needs at startup low: a browser runs only about 100 requests at a time over one HTTP/2 connection, so hundreds of small startup chunks cost several round trips. Group the modules that every entry loads at startup into a few chunks.
- Load the render-blocking stylesheet first, and start the scripts that the first paint doesn't need after it.
- Cut bytes: reference a repeated icon from one SVG sprite instead of inlining it in every item, don't repeat the same text or URLs in structured data, don't load translation catalogs that the page's language doesn't need, drop what build plugins add to every chunk when nothing reads it, and serve images in a modern format such as WebP or AVIF at the size the screen needs.
- Preload a route's code and data when the visitor shows intent: when a link is hovered or focused, or when the pointer rests on an item for about 100 ms, but not when an item only scrolls under a still pointer.
- Let each route declare its data up front, so that the server starts every request while it renders. Embed each API response the server fetched in the page once, and let the browser reuse it instead of fetching it again; don't serialize a normalized client store into the page, because it's several times larger than the responses it came from.
- On the server, start independent upstream requests at the same time instead of one after another.
- In a Node.js server, watch the event loop: a busy event loop delays every response and can fire a timeout for a request that has already been answered. Spread rendering across enough worker threads, and replace a worker whose event loop or memory stays over its limit, so that one stuck render affects only its own requests.
Source: [Rebuilding the global town square from scratch](https://blog.x.com/en/engineering/rebuilding-the-global-town-square-from-scratch), X Engineering, 2026-11-04.