Commit 60b4f6d
committed
perf: Defer OTel CDN loading to after first paint
Moved OpenTelemetry SDK loading from blocking script execution to
requestIdleCallback (with setTimeout fallback). This ensures:
- First paint is not blocked by CDN latency
- OTel loads during browser idle time after initial render
- Graceful degradation if CDN is slow or unavailable
The shim ensures all tracing calls work immediately, with real
implementation hydrated asynchronously after first paint.1 parent 6ac6e49 commit 60b4f6d
0 commit comments