Skip to content

feat: add timing instrumentation to LoadingOverlay#18

Closed
Huxpro wants to merge 1 commit intomainfrom
Huxpro/loading-overlay-logic
Closed

feat: add timing instrumentation to LoadingOverlay#18
Huxpro wants to merge 1 commit intomainfrom
Huxpro/loading-overlay-logic

Conversation

@Huxpro
Copy link
Copy Markdown
Member

@Huxpro Huxpro commented Mar 17, 2026

Summary

Adds performance instrumentation to WebIframe's loading pipeline to diagnose slow loading issues. Logs key milestones: runtime initialization, template loading, shadowRoot discovery, and first render detection via MutationObserver or fallback timeout.

Details

Previously, we couldn't determine if the 5-second fallback timeout was actually being hit, or if the observer callback was firing but the shadowRoot already had content (race condition).

The instrumentation outputs structured timing data to console, showing elapsed milliseconds from effect start to each phase.

Track key milestones in the WebIframe loading pipeline:
- Runtime (web-core + web-elements) initialization
- Template URL assignment and shadowRoot polling
- First content render detection (via MutationObserver or fallback timeout)

This diagnostic data helps identify whether the 5s fallback timeout is actually
triggering, and if the observer is missing early DOM insertions.
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 17, 2026

Deploy Preview for lynx-go-web ready!

Name Link
🔨 Latest commit f7a9381
🔍 Latest deploy log https://app.netlify.com/projects/lynx-go-web/deploys/69b917d7b2c5f900084316db
😎 Deploy Preview https://deploy-preview-18--lynx-go-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Huxpro Huxpro closed this Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant