How to Audit Third-Party Scripts with OpenClaw
Audit third-party script performance with OpenClaw and ToolRouter. Identify and clean up script bloat.
ToolLighthouse AuditOpenClaw audits third-party script impact across your entire site in one batch, producing a structured inventory of every external script with its download size, execution time, and performance cost per page. The automated output identifies the most expensive scripts site-wide and formats the data for executive reporting.
Connect ToolRouter to OpenClaw
1Install the CLI
npm install -g toolrouter-mcp2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp toolsSteps
Once connected (see setup above), use the Lighthouse Audit tool:
- Ask: "Audit third-party scripts on mysite.com for performance impact"
- OpenClaw lists each script with its performance cost
- Request: "Rank these by performance impact and suggest which to remove or defer"
- Clean up scripts and re-audit to verify improvement
Example Prompt
Try this with OpenClaw using the Lighthouse Audit tool
What third-party scripts are slowing down mysite.com? Rank them by impact.
Tips
- Focus on scripts running on your highest-traffic pages first
- Ask for loading strategy recommendations specific to each script type
- Re-audit quarterly to catch newly added scripts accumulating over time