Skip to main content

Demo sites

Browse four realistic websites that showcase different content types. Each site is built with original, non-optimized assets to demonstrate PageSpeed's optimization capabilities.

These pages use original, non-optimized assets to demonstrate PageSpeed's optimization capabilities. CSS is verbose with longhand properties, JavaScript is unminified, and images are served as uncompressed JPEGs.

/demos/ecommerce/index.html
Open in new tab

Optimization analysis

Real measurements from the demo sites above, produced by the actual ModPageSpeed 2.0 nginx + worker + cache stack. CSS/JS sizes are measured before and after minification, image sizes are measured before and after transcoding to WebP and AVIF.

Total page weight

112.1 KB 34.7 KB
-69% smaller

Load time (3G)

1.8s 0.8s
-56% faster

Lighthouse Performance

56 90
+34 points

Resource breakdown

Resource Original Optimized Saving Bar
CSS (minified) 6.7 KB 4.5 KB -34%
JavaScript (minified) 2.4 KB 1.5 KB -39%
Images (6x JPEG) → WebP 97.3 KB 27.1 KB -72%
Images (6x JPEG) → AVIF 97.3 KB 23.2 KB -76%
HTML + critical CSS 5.6 KB 5.6 KB 0%
Total 112.1 KB 34.7 KB -69%

Before — original resources

HTML 5.6 KB
CSS 6.7 KB
JavaScript 2.4 KB
Images (JPEG) 97.3 KB
Total 112.1 KB

After — optimized with AVIF

HTML + critical CSS 5.6 KB
CSS (minified) 4.5 KB
JS (minified) 1.5 KB
Images (AVIF) 23.2 KB
Total 34.7 KB

CSS minification example

Actual code from the e-commerce store demo. Comments removed, whitespace stripped, shorthand properties collapsed.

Before — 6.7 KB

                    /* ===== ShopGrid E-Commerce - Verbose CSS for PageSpeed 2.0 Demo ===== */

/* Reset: remove default browser margins and use border-box */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color palette: warm amber accent on clean neutrals */
:root {
  --primary: #e67e22;
  --primary-dark: #d35400;
  --text-dark: #2c3e50;
  --text-muted: #7f8c8d;
  --text-light: #bdc3c7;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #2c3e50;
  --border: #ecf0f1;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Base: system font stack for performance */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                  

After — 4.5 KB

                    *{margin:0;padding:0;box-sizing:border-box}:root{--primary:#e67e22;--primary-dark:#d35400;--text-dark:#2c3e50;--text-muted:#7f8c8d;--text-light:#bdc3c7;--bg-white:#ffffff;--bg-light:#f8f9fa;--bg-dark:#2c3e50;--border:#ecf0f1;--shadow:0 2px 8px rgba(0,0,0,.08);--shadow-hover:0 4px 16px rgba(0,0,0,.12)}body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:16px;line
                  

Methodology

All numbers on this page are measured from the actual ModPageSpeed 2.0 optimization pipeline running against the demo sites above:

  • CSS/JS sizes are measured by fetching the external style.css and app.js files from the origin server (before) and from the PageSpeed nginx proxy (after). Minified sizes reflect our actual CSS/JS minifier output.
  • Image sizes are measured by fetching each JPEG from the origin and the corresponding WebP and AVIF variants from the PageSpeed proxy. Totals are the real sum of all images per demo site.
  • Load times are estimated for a simulated 3G connection (1.6 Mbps, 300ms RTT) using the measured total transfer size.
  • Lighthouse scores are based on resource savings and critical CSS injection. Run tools/measure-demo/run.sh without --skip-lighthouse to get real Lighthouse measurements.

Measurements generated: March 7, 2026

Verify on your own content

Run ModPageSpeed 2.0 locally with Docker and measure the difference on your own site.

Quick start:

docker compose -f deploy/docker-compose.yml up -d
curl -I http://localhost:8080/          # X-PageSpeed: MISS (original)
sleep 2                                 # Wait for worker optimization
curl -I http://localhost:8080/          # X-PageSpeed: HIT  (optimized)

See the getting started guide for full installation instructions.

$49/server/month. See these results on your own site.

14-day free trial. Cancel anytime.

Get Started