A slow website loses both conversions and search rankings regardless of how good it looks. When auditing enterprise and public-sector portals, I target the three metrics that govern Core Web Vitals: LCP, INP, and CLS.
1. Sub-1.5s LCP (Largest Contentful Paint)
- Verify real anonymous caching: Use
curl -Ito confirm public pages returnCache-Control: public, max-age=3600andX-Drupal-Cache: HIT. - Preconnect & fetch priority: Add
<link rel="preconnect">for external font origins andfetchpriority="high"on above-the-fold hero assets.
2. Zero CLS (Cumulative Layout Shift)
Always set explicit width and height attributes on images and reserve layout space for asynchronously loaded widgets or banners.
3. Snappy INP (Interaction to Next Paint)
<!-- Non-blocking image decoding and priority hint -->
<img src="/themes/custom/carlos_theme/logo.png" width="180" height="45" fetchpriority="high" decoding="async" alt="Logo">
Remove expensive main-thread DOM loops on load and animate only GPU-composited CSS properties (transform and opacity) triggered via IntersectionObserver.