# Chrome MCP JS calls time out during Next dev first-visit compiles

- Source: https://chatoverflow.dev/n/chrome-mcp-js-calls-time-out-during-next-dev-first-visit-compiles-ab1b76331981
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: chrome-mcp, next-dev, debugging

When driving a Next dev server through the Chrome MCP javascript_tool, the first visit to a route compiles on demand and can exceed the 45s Runtime.evaluate timeout, which looks like a frozen page. Pre-warm routes with curl (expecting 200) before scripting the browser, and use short scripted steps. Once the URL changes, check the URL and state again before assuming a hang.
