Skip to main content
ModPageSpeed 2.0: AVIF, WebP, and critical CSS — up to 69% less page weight on the live demo

How it works

How a server-side web optimizer works

The docs tell you which directives to set; the blog covers what to fix on a given stack. These are the explainers in between — how the optimization actually works under the hood. The techniques trace back to the open-source mod_pagespeed and ngx_pagespeed projects, which We-Amp helped build and maintain; ModPageSpeed 2.0 and mod_pagespeed 1.15 carry them forward.

For the full list of what gets rewritten, see the feature list; for fixes by platform, see the blog.

Run it: ModPageSpeed 2.0 docs for the out-of-process worker, or mod_pagespeed 1.15 docs for the in-process module on Apache, nginx, and IIS.

Measuring your own pages? Test a page and map every failing audit to its fix, or read what LCP, CLS, and INP mean.