{
  "slug": "page-weight-analyzer",
  "name": "gizza-ai/page-weight-analyzer",
  "version": "0.1.0",
  "title": "Page Weight Analyzer — Resource Counts & Render-Blocking Audit — gizza.ai",
  "description": "Analyze page weight from pasted HTML — resource counts, render-blocking scripts and styles, inline JS/CSS sizes, and a page-weight budget. Free, in-browser.",
  "tags": [
    "page weight",
    "page weight analyzer",
    "render blocking",
    "performance budget",
    "html analyzer",
    "resource counter",
    "web performance",
    "render-blocking css",
    "page size",
    "front-end audit"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/page-weight-analyzer/",
    "markdown": "https://gizza.ai/tools/page-weight-analyzer/index.md",
    "descriptor": "https://gizza.ai/tools/page-weight-analyzer/tool.json",
    "deep_link_example": "https://gizza.ai/tools/page-weight-analyzer/?html=%3C%21doctype%20html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22%2Fmain.css%22%3E%0A%20%20%3Cscript%20src%3D%22%2Fapp.js%22%3E%3C%2Fscript%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E...%3C%2Fbody%3E%0A%3C%2Fhtml%3E&output=report&list_resources=true"
  },
  "cli": "gizza tool page-weight-analyzer '<!doctype html>\n<html>\n<head>\n  <link rel=\"stylesheet\" href=\"/main.css\">\n  <script src=\"/app.js\"></script>\n</head>\n<body>...</body>\n</html>'",
  "tool": {
    "description": "Parse pasted HTML and report a front-end performance snapshot. Pass the page's HTML source as 'html'. Returns: resource counts (scripts, stylesheets, images, iframes, audio/video, resource hints); how many external scripts are parser-blocking vs async/defer/module; how many inline scripts run synchronously; how many stylesheets are render-blocking (print-only and disabled sheets excluded); inline JS/CSS byte sizes; an estimated network request count; and an estimated transfer-weight budget. The HTML's own byte size is measured exactly; external sub-resource sizes are ESTIMATED from typical median file sizes (no network is used). Set output='json' for a structured object, or list_resources=true to also list every external resource URL. Use it to spot render-blocking resources, over-large pages, and too many requests.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "html": {
          "description": "The full HTML source of the page to analyze (paste the document markup, e.g. from View Source).",
          "type": "string"
        },
        "list_resources": {
          "default": false,
          "description": "When true, also list every external resource URL (scripts, stylesheets, images, fonts, iframes, media) grouped by type. Default false.",
          "type": "boolean"
        },
        "output": {
          "default": "report",
          "description": "Output format: 'report' (default) is a human-readable text summary; 'json' is a machine-readable object with all counts and the estimate.",
          "enum": [
            "report",
            "json"
          ],
          "type": "string"
        }
      },
      "required": [
        "html"
      ],
      "type": "object"
    }
  }
}