In standard WordPress sites, WordPress Core, themes, SEO plugins, analytics scripts, and third-party plugins inject elements into wp_head() in arbitrary order. This can lead to critical performance pitfalls:
<title>.Capo solves this automatically. By intercepting the page response via output buffering, Capo uses a deterministic, stable sorting algorithm to reorder <head> elements strictly according to browser critical rendering path priorities.
Capo organizes elements into 11 strict priority tiers (Weight 10 down to 0):
<base>, <meta charset>, <meta name="viewport">, critical http-equiv headers (CSP, origin-trial, accept-ch).<title>.<link rel="preconnect">.<script src="..." async>.<style> blocks containing @import rules.<script> without defer/async).<link rel="stylesheet">, <style> blocks.<link rel="preload">, <link rel="modulepreload">.<script src="..." defer>, <script src="..." type="module">.<link rel="prefetch">, <link rel="dns-prefetch">, <link rel="prerender">, <script type="speculationrules">.<head> is immediately optimized.<!--[if ...]>), CDATA blocks, and inline script markup.<head> hygiene warnings and diagnostic status in Tools > Site Health and Admin Toolbar.?capo=off to any frontend URL to inspect the un-reordered head.