Skip to main content
DrupalMaze
Free quote

How we took a Drupal site from 38 to 96 on mobile Lighthouse

The starting point

A service-heavy Drupal site scoring 38 on mobile Lighthouse. The failure profile was typical: 4.1s Largest Contentful Paint from an unoptimized hero, 900ms of blocking JS, and three third-party scripts fighting for the main thread. Nothing exotic — which is the point. Most slow Drupal sites are slow in ordinary ways.

Fix one: the hero image was a 2.8MB PNG

LCP was the biggest single lever. The hero shipped a PNG exported at 2× for "retina" screens. Converted to WebP, properly sized via Drupal image styles with srcset, and marked fetchpriority="high". One change moved LCP to 2.3s and the score to 61.

Fix two: kill the render-blocking chain

Five separate theme CSS files loaded sequentially — the theme had aggregation off in production (left off after debugging). Turned aggregation back on, then audited the few scripts in <head>: two were defer-able immediately. Libraries belong in the footer unless they genuinely must run pre-render.

Fix three: third-party script triage

A chat widget, an analytics tag, and a font loader each claimed the main thread early. The chat widget loaded on every page but was used on maybe 3% — moved to a facade pattern: a static button that loads the real script on first interaction. Analytics went async; the font loaded with display=swap. Combined: ~600ms of main-thread time back.

Fix four: actually cache like Drupal can

Page cache and dynamic page cache were on, but internal TTLs were too aggressive and cache tags were sloppy — a frequent block invalidation flushed whole page classes. Fixed the invalidation, set a sane max-age, and anonymous traffic started serving sub-100ms TTFB from the cache layer.

Fix five: the layout shift nobody noticed

CLS was 0.34 — the cookie banner and a late-loading ad of whitespace pushed content down. Reserved fixed heights for banners and set explicit width/height on every image. CLS dropped under 0.05.

What 96 actually means

The score is a proxy. The real change: mobile bounce on service pages dropped noticeably the following month. Fast is not a metric — it is whether a resident on a phone can read the fee schedule in a parking lot.

Performance remediation is core to our Drupal services.

Bring us your beautifully complicated problem.

↗