Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

CSS Usage Analyzer

4 sites Security covered
View on drupal.org

CSS Usage Analyzer is a Drupal module that helps developers optimize frontend performance by identifying unused CSS, analyzing stylesheet efficiency, and providing recommendations to reduce CSS bloat. It offers detailed insights into CSS usage at various levels, visual reports, and optimization suggestions directly within the Drupal admin interface.

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

Activity

Tracked releases
3
Tracked since
May 2026
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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