Tech foundations

What is latency?

In short

Latency is the delay between asking for something and getting the response, usually measured in milliseconds. Low latency makes websites and AI tools feel fast and natural to use.

Latency adds up from distance, busy servers and how long the work itself takes. For AI, the biggest part is often the model generating its answer. Showing the answer word by word as it is written, called streaming, makes the wait feel shorter.

Mini course

3 short lessons, about 2 minutes in total

  1. Where the waiting comes from
  2. Making AI feel fast
  3. Speed and search rankings

Lesson 1

Where the waiting comes from

Every answer goes through steps: the request travels to the server, waits in line, gets processed and travels back. Each step adds latency. For a web page, distance and server load dominate. For an AI tool, the model's work usually takes the longest, because it writes the answer one piece at a time.

User asks
Network trip
Total wait
Latency is the waiting time added at every step between a question and its answer. Shortening the slowest step helps most

Tap a box to open that concept

Measure before fixing: find the slowest step first.

Lesson 2

Making AI feel fast

Streaming shows the answer as it is written, so people start reading after a fraction of a second. Smaller models answer much faster and handle many tasks well. Shorter prompts mean less to read. And common questions can be answered from a saved copy.

The chatbot on this website uses a small, fast model and short answers for exactly this reason.

Lesson 3

Speed and search rankings

Google measures how fast real visitors see and can use your pages, in what it calls Core Web Vitals, and uses it as one ranking signal. A CDN, compressed images and less code on each page usually make the biggest difference.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathLatencyCloud computingDatabaseAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where Latency sits in a company's AI setup

Test your key pages with Google PageSpeed Insights, fix the top items it lists, and test again.

An everyday example

A voice assistant that answers after half a second feels like a conversation. One that answers after three seconds feels broken, even if the answer is right.

How companies use it

Companies care about latency because slow pages lose visitors and rank lower in Google, and slow AI tools get abandoned. Choosing nearby servers and faster models reduces it.

In the news

Google

· Computer Sweden

Google rolls out Gemini 4 Live voice models for real-time translation

Businesses that talk to customers in many languages get a faster voice model to build on.

Frequently asked questions

What is good latency for a website?

Pages that start showing content within about one second feel fast. Google measures this in its Core Web Vitals.

Why are some AI models slower?

Larger and reasoning models do more work per answer. Smaller models answer faster and are often enough for simple tasks.

How do I reduce AI latency?

Stream the answer, use a smaller model where possible, keep prompts short and reuse answers to common questions.

In depth: Latency

The full picture, about 4 minutes of reading

The wait between asking and getting

Latency is the delay between asking for something and getting the response. Click a link, and latency is the time until the page starts to appear. Ask an AI assistant a question, and it is the time until the first words of the answer show up. It is usually measured in milliseconds, thousandths of a second, because people notice even small delays.

Latency is not the same as how much work a system can handle, which is called throughput. A motorway can carry many cars an hour, which is high throughput, and still take you a long time to cross town if the route is long, which is high latency. Both matter, but for the person waiting at the screen, latency is what decides whether something feels quick or sluggish.

Why a few hundred milliseconds matter

People are impatient with machines in a very consistent way. A response that comes almost instantly feels like part of the action. A short pause is noticed but accepted. A longer wait breaks the flow, and people start wondering whether something is wrong, clicking again or leaving.

This has direct business effects. Slow web pages lose visitors before they have read anything, and slow checkouts lose orders. For voice assistants and phone bots, the effect is even stronger. In a spoken conversation, a gap of a couple of seconds feels like the line has dropped, even if the answer that follows is perfect.

Search engines care too. Google measures how quickly real visitors see and can use pages, in a set of measures it calls Core Web Vitals, and uses page experience as one of many signals when ranking results.

Where the delay comes from

Every response passes through several steps, and each adds some latency.

The request has to travel. Data moves fast, but a trip across a continent and back still takes noticeable time, and every extra hop between networks adds more.

It may have to wait. A busy server handles requests in turn, so at peak times your request queues behind others.

It has to be processed. A simple web page is quick to build. A page that runs many database lookups, or a large image that has to be loaded, takes longer.

For AI tools, processing usually dominates. The model reads your prompt and then writes the answer one small piece at a time, called tokens, with a full round of computing for each. Longer prompts take longer to read. Longer answers take longer to write. Larger models and reasoning models, which work through a problem before answering, do more work per token.

Making AI feel fast

The most effective trick is streaming: showing the answer as it is written, word by word, instead of waiting for the whole text. The total time is the same, but people start reading within a fraction of a second, so the wait feels much shorter. Most chat assistants work this way.

Beyond that, the choice of model matters most. Smaller models answer much faster and handle many everyday tasks well, such as short replies, sorting and extracting data. Reserve the large or reasoning models for the questions that need them.

Shorter prompts help, since there is less to read. So does reusing work: answers to very common questions can be saved and shown instantly, and many providers cache a fixed opening part of a prompt so it is not processed from scratch each time. Finally, running the AI service in a data center near your users removes some of the travel time.

Making websites fast

For websites, the biggest gains usually come from a few well-known steps. A content delivery network, or CDN, keeps copies of your pages and images on servers around the world, so visitors fetch them from nearby instead of from one distant server. Images compressed to a sensible size, and in modern formats, load far faster than large originals. Less code, especially fewer heavy scripts from trackers, chat widgets and plugins, means the browser has less to download and run before the page is usable.

Measurement should come before fixing. Google's free PageSpeed Insights tool tests a page, shows how real visitors experience it where data is available, and lists the main problems in order of impact. Testing the pages that matter most, such as the home page, main service pages and contact page, on a phone connection gives a realistic picture.

What it means for a small business

For a small business, latency shows up in two places: the website and any AI tool facing customers. On the website, test the key pages with PageSpeed Insights, fix the top few items it lists, and recheck after every larger change, such as a new theme or plugin. Phone users on mobile connections are the ones who suffer most from a slow site.

For a chatbot or voice assistant, try it yourself as a customer would, on a phone, and notice how long the first words take. If it feels slow, check that streaming is on and whether a smaller model gives good enough answers. A quick, mostly right answer that invites a follow-up question often serves customers better than a perfect answer that arrives too late.

Sources: web.dev: Web Vitals, Google PageSpeed Insights

Curious what this could mean for your company? Book a call.

Book a call