The Carbon Cost of Bad Code: How Technology Choices Shape the Web's Environmental Footprint

Data centers consumed 536 TWh of electricity in 2025 — 2% of global electricity, roughly equal to the entire power consumption of France. The median web page weighs 2.6 MB on mobile. Every megabyte of JavaScript alone emits up to 1.76g CO2e per pageview.

These aren't abstract numbers. They're the consequence of millions of individual technology choices — which CMS, which framework, which server, which hosting provider. Every <script> tag is an energy decision. Every unoptimized WordPress plugin is a carbon decision. Every Apache configuration that could have been nginx is an efficiency decision.

We mapped the technology stack of 1.4 million websites in LLMSE's database and cross-referenced it with published carbon research. This is the first large-scale study connecting real-world technology adoption to sustainability outcomes.

The headline finding: the web's greenest architecture — static site generators — powers only 2.6% of sites. The heaviest architecture — jQuery plus unoptimized CMS — powers over 40%. The web is built on its least efficient technology, at scale.

The Technology Map of 1.4 Million Websites

Every website in LLMSE's database has its technology stack detected through HTML signatures — wp-content paths for WordPress, CDN imports for jQuery, generator meta tags for Hugo, framework-specific class patterns for React and Angular. Here's what 1.4 million sites are actually built on:

CMS and Framework Distribution

Technology Domains Share Type
WordPress 477,792 34.0% CMS
Medium 147,749 10.5% Blogging Platform
jQuery 113,148 8.0% Legacy Library
AEM 54,595 3.9% Enterprise CMS
Drupal 25,690 1.8% CMS
Jekyll 15,992 1.1% Static Site Generator
Next.js 15,429 1.1% Meta-Framework
Shopify 13,943 1.0% E-Commerce
Squarespace 12,220 0.9% Website Builder
Astro 10,297 0.7% Static Site Generator
React 9,583 0.7% SPA Framework
Hugo 8,591 0.6% Static Site Generator
Joomla 7,289 0.5% CMS
Angular 6,691 0.5% SPA Framework
Vue.js 4,179 0.3% SPA Framework
Gatsby 2,013 0.1% Static Site Generator

WordPress alone accounts for 34% of the web in our dataset. jQuery — a library that predates modern JavaScript — still runs on 8% of sites. Static site generators (Hugo, Jekyll, Astro, Gatsby combined) collectively power just 2.6%.

The environmental implication: the web's technology distribution is inverted relative to efficiency. The lightest-weight architectures have the smallest market share. The heaviest have the largest.

Server Distribution

Server Domains Share
Cloudflare 394,000 28.0%
nginx 321,000 22.8%
Apache 240,000 17.0%
GitHub Pages 82,000 5.8%
LiteSpeed 59,000 4.2%

Cloudflare's edge network handles more traffic than any traditional server. Apache — the least efficient major server at scale — still serves 240,000 domains.

The Weight of JavaScript

JavaScript is the web's heaviest environmental tax. The median web page ships 697 KB of JavaScript — up from roughly 300 KB in 2015. That's a 132% increase in a decade. And JavaScript is uniquely expensive: unlike images, which can be lazy-loaded and decoded by hardware, JavaScript must be downloaded, parsed, compiled, and executed by the CPU. Every step consumes energy.

The carbon cost is measurable. The Sustainable Web Design Model (SWDM v4) estimates every MB of JavaScript emits up to 1.76g CO2e per pageview when accounting for the full data transfer and device processing chain. For a site receiving 100,000 monthly pageviews with 700 KB of JS, that's approximately 123g CO2e per month — from JavaScript alone.

Framework Bundle Sizes

Published data on framework bundle sizes reveals the range:

Framework Typical Bundle Relative Weight
Svelte ~3 KB 1x (baseline)
Alpine.js ~15 KB 5x
Vue.js ~34 KB 11x
React ~42 KB 14x
Angular ~130 KB 43x

These are framework-only sizes before application code, dependencies, polyfills, and third-party scripts. Real-world Angular applications routinely ship 500 KB+ of JavaScript. React applications with common libraries (React Router, Redux, component libraries) land between 200-400 KB.

jQuery: The Legacy Carbon Problem

jQuery deserves special attention. It appears on 113,148 sites in our dataset — 8% of the web — despite being largely unnecessary since ES6 standardized the DOM APIs jQuery was created to smooth over.

jQuery's quality grades tell the story:

Metric jQuery Web Average
SEO Pass Rate (A+B) 0.11% 0.48%
EEAT Pass Rate (A+B) 13.3% 24.5%
WCAG Pass Rate (A+B+C) 23.4% 30.5%

jQuery sites have the lowest SEO pass rate of any technology in our dataset — 77% below the web average. They also have the worst accessibility scores. These sites aren't just heavy; they're outdated across every quality dimension. And outdated sites tend to be bloated sites — loading jQuery alongside modern frameworks that duplicate its functionality, running unmaintained plugins, serving uncompressed assets.

Static vs Dynamic: The Efficiency Divide

The clearest environmental divide in web technology is between static and dynamic architectures.

Static site generators (Hugo, Jekyll, Astro, Gatsby) pre-build every page at deploy time. The server delivers plain HTML files. No PHP execution. No database queries. No server-side rendering on each request. The compute cost is paid once at build time, not multiplied by every visitor.

Dynamic CMS platforms (WordPress, Drupal, Joomla) execute server-side code and query databases on every pageview. WordPress runs PHP, queries MySQL, assembles the page, and sends it — for every single visitor, unless a caching layer intervenes.

The carbon difference is published: an unoptimized WordPress site emits approximately 0.77g CO2e per pageview. An optimized static site can achieve as low as 0.09g — an 88% reduction.

Quality as an Efficiency Proxy

Quality grades function as a proxy for efficiency. Higher-quality sites tend to be better optimized, load faster, and waste fewer resources. Here's how static generators compare to dynamic CMS platforms in LLMSE's data:

SEO Pass Rates (A+B)

Platform Type SEO Pass Rate
Astro SSG 1.52%
Gatsby SSG 1.23%
WordPress CMS 0.80%
Hugo SSG 0.61%
Drupal CMS 0.65%
Jekyll SSG 0.42%
Joomla CMS 0.15%

Astro — the newest static site generator in our dataset — has an SEO pass rate nearly double that of WordPress. Gatsby, despite its declining popularity, still outperforms every traditional CMS.

WCAG Accessibility Pass Rates (A+B+C)

Platform Type WCAG Pass Rate
Jekyll SSG 61.5%
Gatsby SSG 48.1%
Astro SSG 43.3%
WordPress CMS 36.4%
Drupal CMS 37.5%
Hugo SSG 32.2%
Joomla CMS 18.3%

Jekyll sites have 61.5% WCAG pass rate — nearly double WordPress's 36.4%. Accessible sites tend to be leaner sites: they have proper semantic HTML, fewer unnecessary scripts, and cleaner DOM structures. The accessibility-sustainability correlation is real.

Static sites are greener and higher quality — but only 2.6% of the web uses them.

The combined SSG install base (Hugo 8.6K + Jekyll 16K + Astro 10.3K + Gatsby 2K = 36,908) is dwarfed by WordPress alone (477,792). For every site on a static generator, there are 13 on WordPress.

The Server Efficiency Spectrum

The server a website runs on determines the energy cost of delivering every page.

Published benchmarks: - nginx handles 2.5x more concurrent connections than Apache and uses 5-6% less memory under equivalent load - Cloudflare's global CDN reduces network carbon by up to 96% by serving content from the nearest edge node instead of routing to origin - LiteSpeed claims 75% less resource usage than Apache for equivalent WordPress workloads

Server Quality Grades

LLMSE's quality data aligns with these efficiency benchmarks. SEO pass rates by server:

Server SEO Pass Rate (A+B) Type
Netlify 1.37% CDN/Edge
Cloudflare 1.20% CDN/Edge
Vercel 1.03% CDN/Edge
LiteSpeed 0.57% Traditional
Apache 0.30% Traditional
nginx 0.24% Traditional
IIS 0.19% Traditional

The pattern is stark: CDN-edge servers outperform traditional servers 3-5x on SEO quality. Netlify (1.37%) is 4.6x Apache (0.30%) and 7.2x IIS (0.19%).

This isn't coincidental. CDN-edge architecture inherently optimizes for the same metrics that SEO grades measure — fast load times, proper caching headers, HTTP/2+ support, TLS by default. Sites that choose Netlify or Vercel are also making an architectural choice that reduces carbon per pageview.

The server your site runs on is an environmental choice. 240,000 sites in our dataset still run on Apache — the least efficient major server for concurrent traffic. Every one of those sites could reduce its energy consumption by migrating to nginx or fronting with Cloudflare.

The Industry Technology Diet

Not all sectors choose their technology equally. LLMSE's category data reveals which industries carry the heaviest technology stacks:

WordPress Adoption by Sector

Category WordPress Sites WordPress Share of Category
Business & Industry 111,000 37.1%
Health 14,200 37.5%
Shopping 12,800 31.4%
Arts & Entertainment 11,900 28.8%
Education 9,400 15.4%

jQuery Persistence by Sector

Category jQuery Sites jQuery Share
Business & Industry 25,000 8.4%
Computer & Electronics 12,100 5.8%
Shopping 8,900 21.8%
Finance 4,200 8.6%

SSG Adoption by Sector

Category SSG Sites SSG Share
Computer & Electronics 12,800 6.2%
Internet & Telecom 4,200 4.1%
Business & Industry 3,800 1.3%
Education 2,100 3.4%

The tech sector practices what it preaches. Computer & Electronics has the highest SSG adoption (6.2%) and lowest jQuery persistence. Health and Business — sectors with the highest WordPress dependency — carry the heaviest technology stacks.

This matters at scale. If the Health sector's 14,200 WordPress sites are unoptimized (0.77g CO2e/pageview) rather than running static architecture (0.09g CO2e/pageview), the sector-wide excess carbon from technology choice alone is measurable.

The Full Scorecard

Using quality grades as an efficiency proxy and published carbon research, we can rank technologies into sustainability tiers:

Tier 1: Efficient (Highest quality, lowest resource overhead)

Technology SEO Pass WCAG Pass Architecture Carbon Profile
Astro 1.52% 43.3% SSG (pre-built HTML) Minimal: static files, no server compute
Gatsby 1.23% 48.1% SSG (pre-built HTML) Minimal: static files, CDN-native
Next.js 0.94% 37.6% Hybrid (SSG + SSR) Low: selective server rendering
Netlify 1.37% CDN-edge hosting Low: edge-cached delivery
Vercel 1.03% CDN-edge hosting Low: edge-cached delivery

Tier 2: Moderate (Above-average quality, manageable overhead)

Technology SEO Pass WCAG Pass Architecture Carbon Profile
WordPress 0.80% 36.4% Dynamic CMS (PHP + MySQL) Moderate: cacheable with plugins
Drupal 0.65% 37.5% Dynamic CMS (PHP + DB) Moderate: heavier core, better defaults
Hugo 0.61% 32.2% SSG (pre-built HTML) Minimal per-page, lower quality scores
Cloudflare 1.20% CDN-edge proxy Low when fronting, depends on origin

Tier 3: Heavy (Below-average quality, highest resource overhead)

Technology SEO Pass WCAG Pass Architecture Carbon Profile
jQuery 0.11% 23.4% Legacy library (often layered) High: bloated pages, outdated stacks
Angular 0.59% 23.4% SPA (heavy client JS) High: 130 KB+ framework, full CSR
Bootstrap 0.23% CSS framework (often with JS) Moderate-High: frequently bundled with jQuery
Apache 0.30% Traditional server Higher: less efficient connection handling
Joomla 0.15% 18.3% Dynamic CMS High: poor quality scores, outdated ecosystem

The pattern is consistent: technologies with higher quality scores also have architectures that consume less energy per pageview. This isn't a coincidence — the same engineering practices that produce accessible, well-structured, fast-loading sites (semantic HTML, minimal JavaScript, proper caching, CDN delivery) also minimize energy consumption.

The Regulatory Direction

The web's environmental footprint is transitioning from a voluntary concern to a compliance requirement:

EU Corporate Sustainability Reporting Directive (CSRD): Companies with 250+ employees must report on environmental impact, including digital operations. Scope 3 emissions — which include the energy consumed by end users loading your website — are in scope. First reports were due in 2025, with enforcement expanding through 2026.

California SB 253 (Climate Corporate Data Accountability Act): Companies with $1B+ revenue doing business in California must disclose Scope 1, 2, and 3 greenhouse gas emissions. Your website's technology stack and hosting infrastructure fall under Scope 3.

W3C Web Sustainability Guidelines: The W3C published 93 guidelines for sustainable web design covering everything from image optimization to JavaScript efficiency to green hosting selection. These aren't enforceable yet — but they establish the standard that regulation will likely reference.

Green hosting adoption remains low. The Green Web Foundation's directory shows only about 12% of websites run on verified green hosting — providers powered by renewable energy or purchasing credible offsets. 88% of the web runs on hosting with unknown or fossil-fuel-based energy sources.

The intersection of these regulations means: organizations will increasingly need to justify their technology stack choices on sustainability grounds. "We use WordPress because we always have" may not satisfy a CSRD auditor asking why you chose a dynamic CMS over a static generator with 88% lower per-pageview emissions.

What This Means

The web's environmental footprint is not primarily a hosting problem or a data center problem. It's a technology choice problem.

Our dataset shows that:

  • 34% of the web runs on WordPress — a dynamic CMS that, unoptimized, emits 3x more CO2e per pageview than static alternatives
  • 8% still loads jQuery — a library with the lowest quality scores in every dimension, associated with the most outdated and bloated stacks
  • Only 2.6% uses static site generators — the architecture with the lowest carbon footprint per pageview
  • 28% routes through Cloudflare — the most efficient delivery method — but 17% still runs on Apache, the least efficient major server
  • The tech sector leads SSG adoption at 6.2% while healthcare and business lag at 1-3%

The technology choices that produce higher-quality websites — better SEO, better accessibility, better performance — are the same choices that reduce energy consumption. Quality and sustainability are not competing priorities. They're the same priority.

The median web page emits 0.36g CO2e per pageview. Multiply that by the billions of pageviews happening every day, and the aggregate carbon cost of the web's technology choices becomes significant. When EU CSRD auditors start asking about digital carbon footprints, the answer will be found in your package.json and your server configuration — not just your hosting provider's energy source.

The greenest code is the code you don't ship.


This analysis was conducted using LLMSE, which has classified over 1.4 million websites across SEO, EEAT, WCAG accessibility, readability, and GARM brand safety dimensions. Technology detection covers 368+ web technologies. Carbon estimates reference the Sustainable Web Design Model v4, IEA data center energy reports, and HTTP Archive page weight statistics. All quality data reflects the LLMSE database as of March 2026. To analyze your own site, visit llmse.ai/classify.