Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Mismatched entity and/or field definitions 1.2.1 — Minor update available for module meaofd (1.2.1). Release: Lupus Custom Elements Renderer 2.8.1 — Minor update available for module lupus_ce_renderer (2.8.1). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

CSS Usage Analyzer

12 sites Security covered Drupal 10–11
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

Depends on

Dependencies of the latest stable release

  • system Drupal core
  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Release Timeline

Releases

Version Type Core Release date
1.0.2 Stable 10–11 Sep 23, 2026
1.0.1 Stable 10–11 Jun 21, 2026
1.0.0 Stable 10–11 May 18, 2026
1.0.x-dev Dev 10–11 May 18, 2026