Skip to content

Add structured log for page load performance using Navigation Timing API #575

Description

@Chucks1093

Summary

There is no client-side visibility into page load performance across different routes. A structured log using the Navigation Timing API should emit load metrics on each full page navigation so slow routes can be identified from production logs.

Scope

  • After each route change, read PerformanceNavigationTiming for the current page
  • Emit a debug-level log with fields: route, dom_content_loaded_ms, load_event_ms, time_to_first_byte_ms
  • Log should only fire after the load event has completed, not during navigation
  • Skip logging on routes where the timing data is not available

Acceptance Criteria

  • Log emitted after each full page load with all four fields
  • Log not emitted before the load event completes
  • Skipped silently when timing data unavailable
  • Log level is debug

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions