Skip to content
CarbonlessBeta

Guidelines · WSG 3.2

Minify and remove unused code

Unused JavaScript costs twice: the bytes on the wire, and the parse and execution time on a device you do not control.

How to satisfy it

  • Minify every text asset in production; unminified CSS and JS are pure waste.
  • Split bundles by route so a landing page does not carry the whole application.
  • Audit for libraries used once, and for polyfills targeting browsers you no longer support.
  • Remove dead CSS: unused rules ship on every page that includes the file.

Measured pages failing this guideline

From the 60 most recently measured pages. Each links to its full report.

This page explains how Carbonless applies WSG 3.2. The guideline itself is published by the W3C Sustainable Web Design Community Group: Web Sustainability Guidelines.