Agent Wranglers

WEB-36Recommended

Keep load, response and stability fast

Keep the three Core Web Vitals in the good range for at least 75% of visits. LCP (main content shown) stays under 2.5 s, INP (reaction to a tap) under 200 ms and CLS (layout jumps) under 0.1.

How to do it

Send finished HTML from the server, with the key CSS inline and one small hero image found early. Give media a size, use fonts that can't shift text, and send little JavaScript. Judge the result on visitors' numbers at the 75th percentile, phones and desktops apart, as in measure speed in visitors' browsers. Lab tools only predict them.

Examples

HTML example

<head>
  <style>/* key CSS inline, nothing that blocks paint */</style>
  <script type="module" src="/app.3f9a1c.js"></script>
</head>
<body>
  <img src="/hero-1200.avif" width="1200" height="800"
       fetchpriority="high" alt="Team at work">
</body>

How to check

The Chrome UX Report shows all three metrics good at the 75th percentile on phones and on desktops. Sites too small for it use their own field data.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/performance/core-web-vitals">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.