Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

insight

Rules: 2

insight/number

A few pages are far heavier or slower than the rest of the site

insight/number/outlier · info · score 3.0 · site

Pages whose size, request count, load time or CO2 estimate sits far above the median are slow for visitors and costly on mobile data. By default at least 20 pages are needed to compare.

Fix

Find what makes the listed pages cost more than the rest, an uncached query or an oversized image, and bring them near the median.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • co2.grams
  • http.size.body
  • resources.length
  • http.timing.total

insight/value

A few pages are served differently from the rest of the site

insight/value/inconsistent · info · score 2.0 · site

When nearly every page shares an HTTP version, content encoding or cache policy and a few differ, the odd ones are usually a misconfigured route or an overlooked rule, and visitors get them slower or uncached. By default at least 20 pages are needed, with one value on 80% of them.

Fix

Serve the listed pages the way the rest of the site serves them, or keep the difference only where it is deliberate.

Runs by default, in the recommended ruleset.

For rule authors

Reads

  • http.version
  • http.headers.content-encoding
  • http.headers.cache-control