Skip to main content
mod_pagespeed 2.1 is here — open source (Apache-2.0): the module you know, plus the optimizer worker

Live gallery

Optimization examples

Every optimization the mod_pagespeed 2.1 module performs, shown live. Each of these 49 examples is a small page served by the module — in-process in Apache, nginx and IIS. Open one to see the original and the optimized output side by side, read exactly what changed in the source, and see the bytes and requests it saved.

These are the module's named filters.

The module runs in-process in Apache, nginx and IIS, where you switch each optimization on and off individually — so this gallery shows them one filter at a time. The optimizer worker takes a different path: one always-on pipeline with no per-filter switches, nothing to tune and nothing to break. Same optimization libraries underneath, a different control model — on the worker, read these as what the pipeline does, not a list of toggles.

Read the module docs · See mod_pagespeed optimize a whole site

Served live from demo-httpd-1.1.modpagespeed.com. These revive the classic open-source mod_pagespeed example showcase; mod_pagespeed was originally developed at Google, and examples that name Google services (Analytics, AdSense, Fonts) interoperate with them but imply no affiliation. Measured Aug 26, 2026 .

Images

Recompress, resize, inline, sprite, and lazy-load images — usually the largest win.

CSS

Minify, combine, inline, and reorder stylesheets to cut requests and unblock rendering.

JavaScript

Minify, combine, inline, and defer scripts to send fewer bytes and unblock rendering.

HTML

Trim the markup itself — whitespace, comments, redundant attributes and quotes.

Caching

Make resources cacheable forever with content-hashed URLs.

Resources

Resource hints and URL rewriting that start fetches earlier and cut round-trips.