# Speed and loading audit rules

> Find all 30 Sonjoo Speed and loading rules by ID, with the evidence and inputs each check uses.

Canonical documentation: <https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/perf/>

Sonjoo groups 30 checks under **Speed and loading** (`perf`). Select this category with `sonjoo audit <url> --categories perf`, or pass the category ID in an [HTTP audit request](https://sajaddehshiri.ir/sonjoo-seo-audit/api/reference/#start-request-options).

This category has weight **10** in the overall audit score when it has scored results. Sonjoo normalizes category weights over the categories with scored results.

[All audit categories](https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/) · [Rule settings and interpretation](https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/#use-a-rule-id)

## cwv-lcp

Interpret a supplied LCP value against published thresholds; a deterministic local lab measurement does not establish a real-user percentile.

Good is at most 2500 milliseconds. Poor is strictly above 4000. Missing or invalid measurements are unscored.

**Inputs.** Timing or layout observer evidence in milliseconds.

**Evidence.** Metric, value, threshold and synthetic marker or reason where applicable.

Base scoring weight **25** when measured. Requires Chromium rendering.

## cwv-cls

Interpret a supplied CLS value against published thresholds; a deterministic local lab measurement does not establish a real-user percentile.

Good is at most 0.1 unitless score. Poor is strictly above 0.25. Missing or invalid measurements are unscored.

**Inputs.** Timing or layout observer evidence in unitless score.

**Evidence.** Metric, value, threshold and synthetic marker or reason where applicable.

Base scoring weight **25** when measured. Requires Chromium rendering.

## cwv-inp

Compares a valid, nonsimulated interaction timing with the INP thresholds. A browser-generated sample is reported as indicative evidence with the reason synthetic-only.

Good is at most 200 milliseconds. Poor is strictly above 500. Missing or invalid measurements are unscored. Synthetic INP is indicative and carries zero weight.

**Inputs.** Timing or layout observer evidence in milliseconds.

**Evidence.** Metric, value, threshold and synthetic marker or reason where applicable.

Base scoring weight **20** when measured. Requires Chromium rendering.

## cwv-ttfb

Interpret a supplied TTFB value against published thresholds; a deterministic local lab measurement does not establish a real-user percentile.

Good is at most 800 milliseconds. Poor is strictly above 1800. Missing or invalid measurements are unscored.

**Inputs.** Timing or layout observer evidence in milliseconds.

**Evidence.** Metric, value, threshold and synthetic marker or reason where applicable.

Base scoring weight **15** when measured. Requires Chromium rendering.

## cwv-fcp

Interpret a supplied FCP value against published thresholds; a deterministic local lab measurement does not establish a real-user percentile.

Good is at most 1800 milliseconds. Poor is strictly above 3000. Missing or invalid measurements are unscored.

**Inputs.** Timing or layout observer evidence in milliseconds.

**Evidence.** Metric, value, threshold and synthetic marker or reason where applicable.

Base scoring weight **15** when measured. Requires Chromium rendering.

## perf-dom-size

Report large source DOMs, deep nesting and high child counts as performance risks.

**Inputs.** HTML must be available.

**Evidence.** Node count, depth and maximum children.

Base scoring weight **15** when measured.

## perf-css-file-size

Check the number of external stylesheets and the amount of inline CSS.

**Inputs.** HTML must be available.

**Evidence.** Counted stylesheet links and rounded inline CSS size.

Base scoring weight **10** when measured.

## perf-font-loading

Report font-face declarations missing display controls or observable preload hints.

**Inputs.** HTML must be available.

**Evidence.** Preload URLs and font-face declaration counts.

Base scoring weight **15** when measured.

## perf-preconnect

Check critical third-party origin references for a connection hint.

**Inputs.** HTML must be available.

**Evidence.** Critical origin and missing hint list.

Base scoring weight **15** when measured.

## perf-render-blocking

Detect static head script and stylesheet candidates and distinguish executable scripts from inert data blocks.

**Inputs.** HTML must be available.

**Evidence.** Source URLs of blocking scripts, counts of optimized scripts.

Base scoring weight **20** when measured.

## perf-lazy-above-fold

Report lazy loading on the first three source images as a potential above-fold issue.

**Inputs.** HTML must be available.

**Evidence.** First-image lazy boolean and considered image count.

Base scoring weight **15** when measured.

## perf-lcp-hints

Check the observed LCP image for a preload or high fetch priority and report lazy LCP imagery.

**Inputs.** HTML must be available.

**Evidence.** Browser/source distinction, LCP resource path and priority/optimization markers.

Base scoring weight **10** when measured.

## perf-text-compression

Check the delivered Content-Encoding tokens for text compression.

**Inputs.** HTML must be available.

**Evidence.** The received Content-Encoding header and recognized encoding.

Base scoring weight **8** when measured.

## perf-brotli

Prefer a Brotli Content-Encoding token for compressible HTML.

**Inputs.** HTML must be available.

**Evidence.** Content coding and suggested coding.

Base scoring weight **5** when measured.

## perf-asset-compression

Check large loaded text resources for a compression coding.

**Inputs.** Collected Chromium request metadata for measured outcomes.

**Evidence.** Uncompressed/unsized counts and resource URLs.

Base scoring weight **6** when measured. Requires Chromium rendering.

## perf-cache-policy

Identify whether an HTML response declares an explicit caching or validation policy.

**Inputs.** HTML must be available.

**Evidence.** Observed Cache-Control or validator and max age where applicable.

Base scoring weight **7** when measured.

## perf-asset-cache-policy

Check caching directives on loaded static resources.

**Inputs.** Collected Chromium request metadata for measured outcomes.

**Evidence.** Static asset and deficient policy counts.

Base scoring weight **6** when measured. Requires Chromium rendering.

## perf-minify-css

Estimate removable formatting from observed inline CSS source and report external size/name candidates when collected.

**Inputs.** HTML must be available.

**Evidence.** Measured inline size, whitespace ratio or savings estimate.

Base scoring weight **5** when measured.

## perf-minify-js

Estimate removable formatting from observed inline JS source and report external size/name candidates when collected.

**Inputs.** HTML must be available.

**Evidence.** Measured inline size, whitespace ratio or savings estimate.

Base scoring weight **5** when measured.

## perf-response-time

Apply Sonjoo's response latency budget to the fetch duration.

**Inputs.** HTML must be available.

**Evidence.** Elapsed fetch milliseconds and thresholds.

Base scoring weight **7** when measured.

## perf-http2

Measure whether the verified HTTPS endpoint negotiates HTTP/2 when the client offers h2 over ALPN. Report unverified Alt-Svc separately as an advertised hint.

**Inputs.** A verified TLS handshake is required to judge HTTP/2 negotiation. An ordinary response may separately provide Alt-Svc evidence.

**Evidence.** Verified ALPN selection and separately advertised protocol when available.

Base scoring weight **5** when measured.

## perf-page-weight

Apply an HTML-only size budget to the delivered document.

**Inputs.** HTML must be available.

**Evidence.** Decoded UTF-8 byte length.

Base scoring weight **8** when measured.

## perf-js-file-size

Apply an inline executable script budget to the source document.

**Inputs.** HTML must be available.

**Evidence.** Inline total and largest script lengths.

Base scoring weight **5** when measured.

## perf-video-for-animations

Report GIF URLs for review as possible animation assets.

**Inputs.** HTML must be available.

**Evidence.** Count and discovered URLs.

Base scoring weight **4** when measured.

## perf-legacy-javascript

Report known polyfill/runtime naming signals in scripts.

**Inputs.** HTML must be available.

**Evidence.** Matched runtime label and source.

Base scoring weight **5** when measured.

## perf-image-encoding

Report inefficient image resource encodings and transfer sizes.

**Inputs.** Collected Chromium request metadata for measured outcomes.

**Evidence.** Image count, detected legacy resource URLs and transfer size.

Base scoring weight **6** when measured. Requires Chromium rendering.

## perf-duplicate-js

Flag different script URLs that resolve to an obvious duplicate third-party-library name.

**Inputs.** HTML must be available.

**Evidence.** Known library label and affected source URLs.

Base scoring weight **4** when measured.

## perf-source-maps

Report an observable source-map reference for release review.

**Inputs.** HTML must be available.

**Evidence.** Source map reference in a header or comment.

Base scoring weight **2** when measured.

## perf-unused-js

Estimates unused external JavaScript source in the rendered session from Chromium coverage ranges. The unusedBytes field reports UTF-16 source units. Transfer size is a separate measurement.

**Inputs.** Chromium code coverage for the initial page load.

**Evidence.** Coverage bytes and resource URL.

Advisory. Excluded from scoring. Requires Chromium rendering.

## perf-unused-css

Estimates unused external CSS source in the rendered session from Chromium usage ranges. The unusedBytes field reports UTF-16 source units. Transfer size is a separate measurement.

**Inputs.** Chromium code coverage for the initial page load.

**Evidence.** Coverage bytes and resource URL.

Advisory. Excluded from scoring. Requires Chromium rendering.
