# Trace slow Workspace opening to a script resource load with io.Insights

**URL:** <https://community.interop.io/t/trace-slow-workspace-opening-to-a-script-resource-load-with-io-insights/823>\
**Category:** io.Insights\
**Tags:** Knowledge-base\
**Created:** [December 4, 2026, 3:20pm UTC](https://community.interop.io/t/trace-slow-workspace-opening-to-a-script-resource-load-with-io-insights/823 "2026-12-04T15:20:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toni.petrov](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.interop.io/toni.petrov/32/17_2.png) [@toni.petrov](https://community.interop.io/u/toni.petrov)\
**Post date:** [December 4, 2026, 3:20pm UTC](https://community.interop.io/t/trace-slow-workspace-opening-to-a-script-resource-load-with-io-insights/823/1 "2026-12-04T15:20:15Z")

</div>

A Workspace can be slow to open even when the applications inside it start quickly. The delay may occur earlier, while the window hosting those applications is loading. With io.Insights, you can follow the Workspace creation trace into that window’s startup and inspect the operations taking the time.

## Prerequisites

- io.Connect Desktop 10.5 or later with io.Insights and trace collection enabled.
- `instrumentAppStartup` enabled see [auto instrumentation](https://docs.interop.io/insights/configuration/io-connect-desktop/index.html#traces-auto_instrumentation).
- Software for viewing the captured trace, such as Jaeger or Grafana with a tracing data source configured.

This walkthrough assumes you already collect traces.

## 1. Follow Workspace creation into the hosting window

Open the trace for the affected Workspace opening. Follow the sequence from creating the hosting window (the Frame) to loading that window and starting the applications inside it.

In the example, expand `create` → `createEmptyFrame` → `appStartup`. The hosting app is labelled `workspaces-demo`. Its `appStartup` span takes **4.51 seconds**. Under it, a `resource` span takes **4.48 seconds** , making it the operation to inspect next.

[![Workspace creation trace expanded to the hosting app startup and its 4.48-second resource load.](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/66dbecfb9b6e76cbbc3e62794d4a5f864baa77fa.png)](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/61f901392e5486aef075f25c79ffe84018702971.jpeg)

_Follow the branch into the hosting window before assuming the delay belongs to an application inside the Workspace. The nested spans overlap; do not add their durations. [View the full screenshot](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/61f901392e5486aef075f25c79ffe84018702971.jpeg)._

## 2. Inspect the slow resource

Select the `resource` span and inspect its attributes:

| Detail | Recorded value |
| --- | --- |
| Duration | 4.48 seconds |
| `tracingAppName` | `workspaces-demo` |
| `initiatorType` | `script` |
| `cacheState` | `miss` |
| `encodedBodySize` | 4,310,122 bytes (about 4.31 MB) |
| `ttfbMs` | 3,802 ms |
| `url` | `…/workspaces-demo/dist/workspaces.bundle.js` |

[![Resource span details showing a script bundle, cache miss, body size and time to first byte.](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/2fd4b5ba78d99dbdf38a2986eaaefef05a311692.png)](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/61f901392e5486aef075f25c79ffe84018702971.jpeg)

_[View the full screenshot](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/61f901392e5486aef075f25c79ffe84018702971.jpeg)._

The recorded time to first byte (`ttfbMs`) is **3,802 ms** : most of the resource span’s 4.48 seconds. This points the investigation toward the time before the response body starts arriving, rather than treating the entire duration as download time.

The trace identifies a slow load of the hosting window’s script bundle, recorded with `cacheState` set to `miss` and gives the team a specific resource to investigate. They can check the request timing, connection and server behaviour to establish why this resource took so long to load.

After making a change, capture another Workspace opening and compare the same resource span and the Workspace opening time. Record whether the request was a cache hit or miss so a warm-cache run is not mistaken for proof that an underlying delivery issue was fixed.

## Watch the example from Velko’s io.Insights demonstration and read more

- [From Symptom to Root Cause: Tracking Issues with io.Insights Traces — recording and Q&A](https://community.interop.io/t/from-symptom-to-root-cause-io-insights-traces-recording-and-q-a/761): the Workspace startup example begins around **23:29**.
- [Diagnose slow application startup caused by blocking JavaScript with io.Insights](https://community.interop.io/t/diagnose-slow-application-startup-caused-by-blocking-javascript-with-io-insights/791): a related case.
- [io.Insights auto instrumentation](https://docs.interop.io/insights/configuration/io-connect-desktop/index.html#traces-auto_instrumentation): application startup and resource-load instrumentation.
