Understanding Browser Navigation Timing API: All Key Metrics Explained

This article explains the Navigation Timing API's full set of timestamps—from navigationStart to loadEventEnd—detailing each metric's meaning and when it records a value, helping developers diagnose page‑load performance and how they differ for same‑origin versus cross‑origin requests, redirects, and cached resources.

Java High-Performance Architecture
Java High-Performance Architecture
Java High-Performance Architecture
Understanding Browser Navigation Timing API: All Key Metrics Explained

The Navigation Timing API records timestamps for each stage of a page load, from the moment the previous page is unloaded to when the target page finishes loading.

Key timing points include:

navigationStart : Time when the previous page unload completes (or fetchStart if no previous page).

unloadEventEnd : Time when the unload event finishes for same-origin pages; 0 otherwise.

redirectStart and redirectEnd : Times marking the start and end of HTTP redirects for same-origin redirects; 0 if not applicable.

fetchStart : Time before the browser checks the cache or initiates the request.

domainLookupStart and domainLookupEnd : Times when DNS lookup begins and ends; fallback to fetchStart for cached resources.

connectStart and connectEnd : Times when the connection to the server is initiated and completed; fallback to domainLookupEnd for cached resources.

requestStart : Time when the request is sent, regardless of source.

responseStart : Time when the first byte of the response is received.

responseEnd : Time when the last byte is received or the connection closes.

domLoading , domInteractive , domContentLoadedEventStart , domContentLoadedEventEnd , domComplete : Various DOM processing milestones.

loadEventStart and loadEventEnd : Times before and after the load event fires.

The accompanying diagram illustrates these points.

Navigation Timing API diagram
Navigation Timing API diagram
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

frontendperformanceBrowserWeb APInavigation timing
Java High-Performance Architecture
Written by

Java High-Performance Architecture

Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.