How to Measure Time to Interactive with Claude
Measure Time to Interactive with Claude and ToolRouter. Optimize JavaScript for faster page interactivity.
ToolLighthouse AuditClaude measures Time to Interactive and explains what is blocking your page from becoming usable. After the measurement, ask Claude to trace which scripts and resources delay interactivity, suggest code splitting strategies for your framework, or compare TTI across different pages to find the worst offenders in your site.
Connect ToolRouter to Claude
1Go to Settings → Connectors → Add custom connector
2Enter the details below and click Add
Name
ToolRouterURL
https://api.toolrouter.com/mcp3Done — works on Claude chat, desktop, and mobile
Steps
Once connected (see setup above), use the Lighthouse Audit tool:
- Ask Claude: "Run a Lighthouse audit on mysite.com/checkout and focus on Time to Interactive"
- Claude reports TTI, Total Blocking Time, and main-thread blocking sources
- Ask: "What JavaScript is blocking interactivity and how can I defer it?"
- Claude identifies specific scripts and suggests code-splitting or deferral strategies
Example Prompt
Try this with Claude using the Lighthouse Audit tool
Measure Time to Interactive on mysite.com/checkout. What JavaScript is blocking user interaction and how do I fix it?
Tips
- Focus on pages with forms or CTAs where delayed interactivity costs conversions
- Ask Claude to suggest code-splitting strategies for your bundler
- Claude can identify which third-party scripts contribute most to blocking time