Skip to main content
DrupalMaze
Free quote

Core Web Vitals on Drupal: the five fixes that matter most

LCP: it is almost always an image

Largest Contentful Paint on content sites is the hero or the first large image — and the fixes are boring. Serve WebP or AVIF through image styles, emit srcset so phones do not download desktop pixels, set fetchpriority="high" on the LCP element, and never lazy-load the image that is the LCP — lazy-loading the hero is a self-inflicted wound.

CLS: reserve the space you know you need

Cumulative Layout Shift on Drupal sites comes from predictable sources: images without dimensions, banners and embeds that inject late, and webfonts swapping. Explicit width/height attributes (or aspect-ratio CSS) on every image and embed fixes the majority. Cookie banners and alerts get fixed reserved height or overlay positioning — never in-flow insertion.

INP: the main thread is a budget

Interaction to Next Paint measures responsiveness to input — and Drupal sites suffer from script pileup, not script weight. Audit what runs on every page: tag managers, widgets, jQuery behaviors attached to large DOMs. Remove what is unused, defer what is deferrable, and split long tasks. A page that responds in 50ms feels instant; 400ms feels broken even at identical load times.

The two settings most sites skip

First: aggregation on. Too many sites debug-disabled it in 2021 and forgot — check /admin/config/development/performance today. Second: page cache max-age set deliberately, not defaulted — a content site can cache anonymous pages for an hour-plus and invalidate via tags. These are checkboxes, and they move TTFB more than any server upgrade.

Measure the right thing

Lighthouse lab scores point you at fixes, but field data (CrUX, Search Console's CWV report) is what Google judges. A 95 lab score on your M1 Mac says little about a resident's three-year-old Android on LTE. Test on a throttled CPU and mid-tier mobile profile — that is your actual user.

The order of operations

Fix LCP first (usually one image), CLS second (usually attributes), INP last (usually triage). Each is independently shippable — you do not need a performance sprint, you need an afternoon and a prioritized list.

Core Web Vitals remediation is part of our Drupal services.

Bring us your beautifully complicated problem.

↗