How to Measure Time to Interactive with OpenClaw

Measure page interactivity with OpenClaw and ToolRouter. Find and fix TTI bottlenecks.

Tool
Lighthouse Audit icon
Lighthouse Audit

OpenClaw measures Time to Interactive across multiple pages in a single batch, outputting structured data on TTI scores, blocking resources, and JavaScript execution time per URL. The automated approach reveals which page templates or layouts have the worst interactivity and tracks improvement over time through scheduled runs.

Connect ToolRouter to OpenClaw

1Install the CLI
npm install -g toolrouter-mcp
2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp tools

Steps

Once connected (see setup above), use the Lighthouse Audit tool:

  1. Ask: "Measure Time to Interactive on mysite.com/page"
  2. OpenClaw reports TTI and identifies blocking resources
  3. Request: "Which scripts should I defer or code-split?"
  4. Implement changes and re-measure to confirm improvement

Example Prompt

Try this with OpenClaw using the Lighthouse Audit tool
Check Time to Interactive on mysite.com/pricing. What is blocking interactivity?

Tips

  • Focus on reducing Total Blocking Time as the primary lever for TTI
  • Ask for a script-by-script breakdown of main-thread impact
  • Test on throttled connections to simulate real-world mobile conditions