Core Web Vitals — LCP (Largest Contentful Paint), INP (Interaction to Next Paint), and CLS (Cumulative Layout Shift) — are the user-facing performance metrics Google uses for ranking. Most of the optimization work lives in the theme, the JavaScript, and the layout. But the server side controls a meaningful slice of LCP and INP, and a few of those slices are tunable from cPanel alone without touching the application. We do the server-side moves first so the developer optimization that follows has a stable baseline.
What’s happening
LCP measures how long until the largest above-the-fold element renders. It is the sum of: DNS, TLS, TTFB, HTML download, render-blocking CSS, hero image fetch. The cPanel side influences DNS (if you run BIND), TTFB (PHP-FPM, MySQL, OpCache), HTML download (compression, HTTP/2 or HTTP/3 settings), and the image fetch (image optimization, browser cache headers, CDN).
INP measures interaction latency — click to next paint. Mostly a JavaScript main-thread issue, but the server controls the response time of background fetches that an interaction might trigger. A slow wp-admin/admin-ajax.php makes INP worse.
CLS is layout shift — almost entirely a frontend issue, but the server controls cache header behavior for images (so dimensions can be cached from a previous visit) and for fonts (so font swap does not shift layout).
How to verify
Real-user data from Google PageSpeed Insights or web-vitals.js logs is the only honest measurement. From the cPanel side, you can simulate components of LCP:
curl -w "@curl-format.txt" -o /dev/null -s https://example.com/
# where curl-format.txt prints time_namelookup, time_connect, time_appconnect,
# time_starttransfer (TTFB), time_total
For each phase: DNS over 50ms means slow DNS; TLS over 100ms means handshake issues; TTFB over 500ms means PHP/MySQL/cache miss. Compare against the field LCP value to know how much room is in each phase.
Check HTTP/2 and HTTP/3 (QUIC) status:
curl --http2 -I https://example.com/
curl --http3 -I https://example.com/ # requires curl built with HTTP/3
The fix
The cPanel-side moves, ordered by impact:
- TTFB — enable LSCache or full-page cache. Cache hit TTFB on a tuned cPanel host should be under 100 ms; uncached can be 500ms+. This is the single biggest LCP move from the server side.
- HTTP/3 / QUIC — LiteSpeed supports it natively; enable in
Tuning > Listeners > UDP listener. HTTP/3 cuts connection setup time, helping LCP on slow networks. - Image optimization — WebP/AVIF cuts the hero image fetch by 30-50%, directly improving LCP. Covered in the image optimization article.
- Browser cache headers —
Cache-Control: immutableon hashed assets means repeat visits skip the fetch entirely. Especially helpful for INP because subsequent interactions can load resources from cache. - MySQL tuning for admin-ajax — if the customer’s theme makes ajax calls on interaction, a slow query in those endpoints hurts INP. Slow query log is your guide.
- DNS — if running BIND on cPanel, ensure recursors are reachable and TTLs are sane. For most sites, moving DNS to Cloudflare or Route 53 is faster than tuning BIND.
CLS is almost entirely a theme problem; the server side cannot help much beyond ensuring fonts and images load with deterministic dimensions. Stack Harbor tunes the server-side Core Web Vitals levers as part of managed cPanel operations.