--- title: "Userflow.js performance troubleshooting" slug: "troubleshooting-userflow-js-performance" updated: 2026-11-13T16:29:34Z published: 2026-11-13T16:29:34Z canonical: "help.userflow.com/troubleshooting-userflow-js-performance" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://help.userflow.com/llms.txt > Use this file to discover all available pages before exploring further. # Userflow.js performance troubleshooting If your app is slower with Userflow.js installed, or a page freezes, work through these steps to confirm Userflow is the cause and fix it. Most slowdowns come from event trackers that run on every page or from flows with many tooltip steps. ## Step 1: Confirm Userflow is the cause **Check the Performance tab:** Open your browser's DevTools (F12 or Cmd+Option+I), go to the Performance tab, and record a profile while loading your page. Look for `userflow` in the flame graph. If Userflow takes more than ~50ms during page load, it may be contributing to slowness. **Compare with and without Userflow:** Temporarily remove Userflow.js from your page (comment out the script tag or the `userflow.init()` call). Reload and test performance. If the issue disappears, Userflow is likely the cause. **Check the Network tab:** In DevTools → Network, filter by "userflow" and check how long the Userflow.js script takes to load. It's small and should load in under a second on most connections. If it's taking several seconds, the issue is more likely the network than Userflow.js itself. ## Step 2: Check the common causes of slowdowns **Too many active flows:** If you have multiple flows set to auto-start on the same page with overlapping conditions, Userflow evaluates all of them on page load. This can slow down initialization. Review your flows and disable or reschedule any that don't need to run immediately. **Heavy DOM manipulation:** If your flows have many tooltips or modals that need to measure or reposition elements, this can cause layout thrashing. Reduce the number of steps per flow, or split complex flows into smaller ones that run sequentially. **Event tracker overload:** If you have dozens of [no-code event trackers](/userflow/docs/no-code-event-tracking) watching for clicks, page views, or element visibility, Userflow has to monitor those continuously. Audit your event trackers in the Userflow dashboard and remove any that are no longer needed. **Script loading timing:** If Userflow.js loads early in the page (in the `<head>`) and your page has a lot of synchronous scripts, Userflow might block rendering. Move the Userflow.js script tag to the bottom of the `<body>`, or use `async` or `defer` attributes if possible. The install snippet is in [Userflow.js Installation](/userflow/docs/userflowjs-installation). ## Step 3: Optimize your Userflow setup **Start flows on demand:** Instead of auto-starting every flow on page load, start some only when they're needed. For example, start a feature tour from a [Launcher](/userflow/docs/launchers) or a [Resource Center item](/userflow/docs/resource-center) when the user asks for help. Fewer auto-start flows means less work for Userflow.js on each page load. See [How to start flows or checklists](/userflow/docs/how-to-start-flows-or-checklists) for the ways to start a flow on demand. **Reduce tooltips per flow:** Flows with 10+ tooltip steps can cause performance issues because each tooltip needs to find and measure its target element. Break long flows into smaller ones, or use modals instead of tooltips where possible. If tooltips can't find their target, see [Element not found](/userflow/docs/element-not-found). **Check for integration conflicts:** If you're using Userflow alongside other tools (Intercom, HubSpot, analytics scripts), conflicts can occur. Test with other tools temporarily disabled to see if performance improves. If so, adjust load order or reach out to support for guidance on integration best practices. ## What if a page freezes or crashes? A Userflow.js freeze or crash is usually caused by the same things as a slowdown, only worse. Most often the cause is runaway event trackers or expensive element matching: - **Event trackers running on every page.** A tracker with no Current page (URL) condition runs everywhere and continuously watches the DOM. With several such trackers, this can spike CPU and freeze the tab. Add a URL condition to every tracker, and remove any you no longer use. See [My event tracker is slow or affecting page performance](/userflow/docs/no-code-event-tracking#my-event-tracker-is-slow-or-affecting-page-performance). - **Expensive or overly broad element selectors.** Tooltips and trackers that match against large or frequently-changing parts of the page force repeated re-measurement. Tighten the selector to a specific element, and reduce the number of tooltip steps per flow. - **Long-lived single-page-app sessions.** In apps that never fully reload, the cost of event trackers and element matching builds up over a long session. Reproduce with the DevTools Performance and Memory tabs to see whether usage grows over time. **Quick diagnosis:** open DevTools (F12) → Console and watch for repeated Userflow-related errors during the freeze; then temporarily disable your event trackers (or remove Userflow.js) and retest. If the freeze stops, narrow down which tracker or flow is responsible by re-enabling them one at a time. If the freeze persists with trackers disabled, capture a Performance recording and the Console output and contact [support@userflow.com](mailto:support@userflow.com). ## Step 4: When to contact support If Userflow.js is still causing performance issues after the checks on this page, contact support at [support@userflow.com](mailto:support@userflow.com) with the following information: - Browser type and version (e.g., Chrome 120, Safari 17) - The name of the affected environment (for example, Production) and its Userflow.js Token. Both are shown in **Settings → Environments**. - A Performance tab recording (export as JSON from DevTools and attach) - The number of active flows, event trackers, and other Userflow content in your environment - Whether the issue occurs in all browsers or only specific ones This information helps the support team diagnose the issue quickly and provide targeted recommendations.