Paste HTML to inventory static resources
Paste page HTML below. The tool counts images, scripts, stylesheets, iframes, media and preconnects locally, separates internal from external by registrable domain, and measures inline script and style characters. No network, no upload, no dependencies.
Not checked yet.
Definitions
| Item | Rule | Boundary |
|---|---|---|
| Image | img with a non-empty src | CSS backgrounds excluded |
| Script | script with src | Inline counted separately |
| Stylesheet | link rel containing stylesheet | Internal and external |
| External | Registrable domain differs | Subdomains internal; .com.cn uses three labels |
| Inline size | Characters of script/style content | Not compressed bytes |
The tool counts only statically declared HTML resources: JS-inserted resources, CSS background images and srcset alternatives are excluded, so results are lower bounds; they do not judge availability or performance. It shares the rules of scripts/homepage_resource_probe.py: on the 25 cached homepages all 12 metrics match the published CSV.
Logic: js/resource-check.js (no dependencies, no network); scripts/test_resource_check.js covers 10 assertion groups (internal/external, subdomains, CN suffixes, inline characters, CSV). Parity: scripts/parity_resource_check.js. Run:
node scripts/test_resource_check.js
Related: the homepage resource inventory pilot, the homepage image-attributes pilot, and the page text-share pilot.