# @monochromatic-dev/dev-script-page-weight
Per-page transfer-size audit for a built static site.
## What it does
For each `.html` file under the given dist directory,
sums the wire transfer size of the HTML itself plus every asset a browser
would fetch to render it,
then reports the distribution:
`min`,
`max`,
`mean`,
`median`.
The script has no knowledge of any particular site;
it treats the dist directory as a black box of HTML and adjacent assets.
## Wire size rule
For each counted file,
the script reports the size of the `.zst`
companion when one exists alongside it on disk,
otherwise the raw size.
This matches file servers that serve precompressed variants when the client
advertises `Accept-Encoding: zstd`.
## Asset discovery
- **HTML**:
``,
`