Skip to content
RT Softs

Core Web Vitals for Laravel apps: the LCP and CLS traps

Server-side Laravel usually wins on TTFB and loses on images and layout shift. Here is what to fix in the Blade layer.

A Admin
September 24, 2026 2 min read Updated Nov 19, 2026

Core Web Vitals measure what the visitor experiences: how fast the main content paints, how quickly the page responds to input, and whether the layout jumps. Laravel affects the first indirectly and the third directly.

Largest Contentful Paint

The culprit is almost always the hero image. Serve it in the displayed size with width and height attributes, use a modern format, preload it, and avoid lazy-loading the image above the fold. On a Laravel site, loading="eager" on the hero and loading="lazy" everywhere else is most of the fix.

Cumulative Layout Shift

Ad slots, embedded videos and late-loading fonts move content after paint. Reserve space with fixed dimensions for ad containers and media, and preload the font you actually use. Our ad component uses a fixed-ratio container for exactly this reason.

Interaction to Next Paint

Heavy JavaScript on the main thread makes taps feel slow. Ship less JavaScript, defer non-critical scripts, and avoid client-side rendering for content that could be server-rendered. A Blade page with a small Alpine.js bundle usually beats a hydrated SPA on this metric.

Measure in the field, not the lab

Lighthouse is a controlled environment; Search Console's Core Web Vitals report uses real visitors. Improve the lab score for deployment confidence, but trust field data for judging whether the work helped.

Frequently asked questions

Does TTFB affect Core Web Vitals?

Indirectly. A slow server delays everything after it, including LCP. Caching and query optimisation improve both the metric and the experience.

Do ads hurt Core Web Vitals?

They can, through layout shift and main-thread work. Reserve slot dimensions and load them after content so the shift is zero.

More on this topic: Performance & SEO articles.

A

Admin

Related articles