Drupal is a registered trademark of Dries Buytaert
cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.15 Minor update available for module linkit (7.0.15). views_data_export 8.x-1.10 Minor update available for module views_data_export (8.x-1.10).

Project Summary

CSS Usage Analyzer is a Drupal performance optimization module that helps developers identify unused CSS, analyze stylesheet efficiency, and improve frontend performance across Drupal websites.

The module provides detailed insights into CSS usage at page, component, and theme levels, enabling teams to reduce CSS bloat, optimize rendering performance, and improve Core Web Vitals metrics such as LCP and FCP.

Designed for modern Drupal 10/11 websites, the module offers developer-friendly debugging tools, visual reports, and optimization recommendations directly within the Drupal admin UI.

Features

Unused CSS Detection

  • Detect unused CSS selectors and rules
  • Identify dead CSS across pages
  • Highlight unused lines and declarations

Per-Page CSS Analysis

Analyze CSS usage for individual pages:

  • Used vs unused CSS
  • Stylesheet contribution
  • Page-level optimization opportunities
  • Render impact estimation

Component CSS Dependency Mapping

Visualize CSS usage by:

  • Single Directory Components (SDC)
  • Layout Builder blocks
  • Paragraphs
  • Themes
  • Modules

Detect:

  • Duplicate styles
  • Over-shared dependencies
  • Component-level CSS bloat

Critical CSS Suggestions

  • Above-the-fold CSS detection
  • Inline critical CSS suggestions
  • Render-blocking CSS analysis
  • CSS splitting recommendations

CSS Usage Dashboard

Interactive admin dashboard with:

  • CSS size metrics
  • Unused CSS percentage
  • Optimization savings
  • Stylesheet rankings
  • Usage trends

Unused CSS Rule Explorer

  • Source file
  • Line number
  • Rule size
  • Page impact
  • Code preview

Reports & Exporting

  • Export optimization reports
  • Track CSS usage over time
  • Compare scan results

Use Cases

Frontend Optimization

Reduce CSS payload and improve page speed.

Drupal Theme Auditing

Analyze:

  • Custom themes
  • Admin themes
  • Contributed theme libraries

Core Web Vitals Improvements

Improve:

  • LCP
  • FCP
  • CLS indirectly through render optimization

Component-Based Development

Optimize CSS for:

  • SDC
  • Layout Builder
  • Paragraphs
  • Reusable components

Enterprise Drupal Platforms

Useful for large websites with:

  • Multiple themes
  • Design systems
  • Heavy frontend assets

Benefits

  • Reduce frontend payload
  • Improve page performance
  • Simplify theme maintenance
  • Remove legacy CSS safely
  • Improve maintainability
  • Enhance user experience

Keywords

Drupal Performance,
Unused CSS,
Core Web Vitals,
Frontend Optimization,
Critical CSS,
Theme Optimization,
SDC,
Layout Builder,
CSS Audit,
Performance Debugging

Activity

Total releases
2
First release
May 2026
Latest release
3 days ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable May 18, 2026
1.0.x-dev Dev May 18, 2026