Page weight and speed checks

Response time, HTML size, compression, HTTP version, render-blocking and oversized assets from a static fetch, plus CrUX field data when you supply a Google Cloud API key.

What it does

Asset weight

asset-weight-check downloads one page and each linked stylesheet and script, then reads sizes, headers and markup. It reports render-blocking resources, oversized files, duplicate libraries by content hash, missing minification, missing font-display and weak caching or compression. It does not render the page.

  • Render-blocking scripts and stylesheets in the head
  • Files over 500 KB by default, configurable
  • Duplicate libraries found by content hash
  • Compression and cache lifetime of each file

Server and HTML

A crawl or an external crawl export feeds the audit rules for response time, HTML size, text-to-markup ratio, compression and HTTP version. A slow response, an HTML document over 2 MB and a page served over HTTP/1.x are separate findings with their own fix text.

  • Slow server response
  • Large and over-2-MB HTML
  • HTML bloat: much markup for little text
  • No compression, and HTTP/1.x only

Lab versus field

Crawl and browser timings are lab evidence from one machine and one moment. Field Core Web Vitals come from crux-report, which reads the Chrome UX Report for LCP, INP and CLS. It marks results as good, needs improvement or poor with the web-vitals-2024-03 thresholds.

  • Lab timings from the crawl or a browser
  • Field LCP, INP and CLS from CrUX
  • Needs your Google Cloud API key
  • URL or origin scope, and phone, desktop or tablet

Three steps, one saved scan

  1. Fetch the page and its assets

    asset-weight-check downloads the page, then each linked stylesheet and script. It reads sizes, headers and markup. It does not render the page.

  2. Measure the server and the HTML

    The native crawl feeds the audit rules; imported exports work too. They flag slow responses, heavy HTML and missing compression or HTTP/2.

  3. Compare with real-user data

    crux-report pulls field LCP, INP and CLS from the Chrome UX Report. It needs a Google Cloud API key that you supply.

Checks in this feature

CheckWhat it meansSeverityEvidence
SLOW_RESPONSEThe server takes too long to answer the request.ImportantResponse time per URL
LARGE_HTMLThe HTML document is large for the page or for the site.ImportantHTML size in bytes
HTML_OVER_2MBThe HTML document is larger than 2 MB.ImportantHTML size in bytes
HTML_BLOATA lot of markup for very little text.TipBytes and word count per page
NO_COMPRESSIONHTML is sent uncompressed when gzip or Brotli would help.TipContent-Encoding header per URL
HTTP1_ONLYThe page is served over HTTP/1.x, not HTTP/2 or newer.TipHTTP version per URL

One command

bash
spiderhead asset-weight-check --url https://example.com/

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A page URL for asset-weight-check
  • A crawl or external crawl exports for response time and HTML size
  • A Google Cloud API key for crux-report

Limits

  • Unused CSS and JavaScript need a rendered page and are reported as skipped
  • Lab timings are not what your visitors measured
  • CrUX has no data for low-traffic pages
  • A single fetch says nothing about site-wide outliers

Questions

Does it need a browser?
No. asset-weight-check reads bytes and static markup. It cannot tell which CSS or JavaScript is unused. That check needs a rendered page, so it is reported as skipped.
Are the timings real user data?
No. Crawl and browser timings are lab data. Field Core Web Vitals come from crux-report, which needs a Google Cloud API key.
Which thresholds does crux-report use?
Google's web-vitals-2024-03 policy. LCP is good up to 2.5 s and poor above 4 s. INP is good up to 200 ms and poor above 500 ms. CLS is good up to 0.1 and poor above 0.25.
What counts as an oversized file?
By default, any single linked CSS or JavaScript file over 500 KB. The threshold is configurable.
Does it change anything on my site?
No. The checks send read-only requests. Fixes are yours to make.
Does it cost anything?
The checks themselves are free. The CrUX API is free within Google's quota, and you supply your own key. SpiderHead does not give out keys.

Try it on your own site