Public BetaVitalSentinel is now live! Read the announcement
Performance

What is Latency?

The time delay between a user action and the system's response, often referring to network delay in web performance.

Latency is the delay before data transfer begins, often measured as the round-trip time (RTT) for a request to travel to a server and back.

Types of latency

Network latency

  • Time for data to travel between client and server
  • Affected by distance and network quality
  • Typically 20-200+ milliseconds

Server latency

  • Time for server to process a request
  • Affected by server load and code efficiency
  • Database queries, computations

Rendering latency

  • Time for browser to process and display content
  • Affected by JavaScript execution
  • DOM parsing and painting

Measuring latency

  • Ping: Basic network latency test
  • TTFB: Includes server processing time
  • RTT: Round-trip time for full request/response

Reducing latency

  1. Use a CDN to reduce distance
  2. Optimize server-side code
  3. Use efficient database queries
  4. Enable HTTP/2 or HTTP/3
  5. Reduce number of requests

Monitor your website performance

VitalSentinel tracks Core Web Vitals and performance metrics to help you stay ahead of issues.