Skip to content

Website, shop or application slow: is it the server or the frontend?

The category page builds up sluggishly, checkout hangs a moment too long, and in the admin your team waits for every list. Your hosting provider recommends a bigger plan, an agency promises a PageSpeed score above 90, and both cost money without making clear where the time is lost. The first question is simpler: is the browser waiting for your server, or does it already have the response and take this long to display it? That decides where your money is well spent.

By Dimitri König9 min read

Two halves of a load time: server and browser

Every page view runs in two stages. First the browser sends the request, and your server does the work: it fetches data from the database, maybe asks the ERP for the stock level, and assembles the page. The time until the first byte of the response arrives is called Time to First Byte, or TTFB. Then the browser takes over: it loads images, fonts and scripts, builds the page and has to react to clicks.

For the browser stage, Google has defined three metrics, the Core Web Vitals: LCP, INP and CLS. Each is assessed at the 75th percentile of real visits, meaning the value that three out of four visits meet or beat.

Metric What it measures Good Where the cause usually lies
TTFB (Time to First Byte) Time until the server’s first response, including connection setup up to 0.8 s Server: code, database, cache, external integrations
LCP (Largest Contentful Paint) Until the largest visible element is in place, usually an image or a heading up to 2.5 s Both: TTFB plus images, fonts, blocking scripts
INP (Interaction to Next Paint) How quickly the page reacts to clicks and input up to 200 ms Frontend: JavaScript, tracking, widgets, page builders
CLS (Cumulative Layout Shift) How much the content jumps around while loading up to 0.1 Frontend: images without fixed dimensions, late-loading banners

TTFB itself isn’t a Core Web Vital, but it’s part of LCP: as long as the server doesn’t respond, the browser can’t display anything. If your server needs 1.5 seconds, only one second remains for images, fonts and scripts before the 2.5-second LCP limit. Every improvement in TTFB therefore improves all the later values.

What the load time numbers from Switzerland show

The HTTP Archive analyzes Chrome field data by technology. Share of sites with a good TTFB and with passed Core Web Vitals, for visits from Switzerland, mobile, data from September 2026:

System Good TTFB Core Web Vitals passed
WooCommerce 26% 59%
Magento 31% 58%
Shopware 35% 85%
WordPress 46% 70%
Laravel 52% 73%
Next.js 62% 55%
TYPO3 70% 89%

With PHP shops in Switzerland, the weakness lies in server response time (HTTP Archive, mobile, data from September 2026). Three out of four WooCommerce sites don’t reach a good TTFB on mobile. Shopware passes the Core Web Vitals on 85% of sites, even though only 35% have a good TTFB: the frontend makes up for a lot, and the room for improvement is on the server.

With Next.js sites in Switzerland, the weakness lies in the browser rather than on the server: the server responds well on 62% of sites, but only 55% pass the Core Web Vitals, and only 71% have good response times to clicks (INP), while the PHP systems analyzed are at around 90% and above. With Next.js, the time goes into the browser’s JavaScript.

Worldwide, according to the Web Almanac 2025, 44% of websites have a good TTFB on mobile, and 48% pass all three Core Web Vitals.

Statistics like those from the HTTP Archive describe thousands of websites, not yours. Whether your application is one of the slow ones takes a look of your own.

How to check for yourself: server or frontend?

  1. Open PageSpeed Insights (pagespeed.web.dev) and enter an important page, not just the home page: a category, a product, the search.
  2. Read the upper part. The upper part of PageSpeed Insights shows field data: real visits with Chrome from the last 28 days, evaluated at the 75th percentile. That’s where LCP, INP, CLS and TTFB are shown. If the individual page has too few visits, PageSpeed Insights shows the values for the whole domain or none at all.
  3. Put the lower part in context. The lower part of PageSpeed Insights is a lab test with Lighthouse: a simulated mid-range phone with a throttled connection, a single run. It helps find causes in the frontend, such as oversized images or blocking scripts. It doesn’t show how your customers fare, and the score fluctuates from run to run.
  4. Check Search Console. The “Core Web Vitals” report in Google Search Console groups similar pages together, separately for mobile and desktop. This shows you whether all product pages are affected or only one page type.
  5. Measure what the tools can’t see. PageSpeed Insights and Search Console don’t see pages behind the login: a cart with items in it, the customer account, the admin, exports. A stopwatch helps there, or the developer tools in Chrome (F12): in the “Network” tab, the timing of the first request shows how long the browser waited for the server.

TTFB, LCP and INP point you in a first direction on whether the server or the frontend is slowing things down:

  • TTFB poor: The cause lies on the server, no matter how good the frontend is. Typical culprits are slow database queries, a missing or bypassed page cache, calls to the ERP or payment provider during the request, and too few PHP processes for the number of visitors.
  • TTFB good, LCP poor: oversized images, fonts and scripts that block rendering, or a slider that loads the main image late.
  • INP poor: too much JavaScript, often tracking, chat widgets, consent banners or a heavy page builder.
  • Only individual processes slow, such as search, checkout or a list in the admin: almost always the database or an external integration. Why the admin in particular gets slower over the years is covered in the guide Why your admin keeps getting slower.

What a bigger hosting plan does and doesn’t do

More server power helps a slow application when the server is at its limit: the processor is constantly maxed out, memory runs short, requests are queuing. The usage figures in the hosting panel show this, especially at peak times. If, on the other hand, a single page takes two seconds because it sends hundreds of database queries, misses the cache or waits for the ERP, it takes almost as long on a server twice the size. The bigger plan costs money every month, and the cause remains.

A fix in the right place lowers server costs for good, unlike a bigger plan. What a cache delivers doesn’t have to be recomputed by PHP or looked up again by the database.

Two examples from my own work of a cache in the right place: a multi-tenant shop platform with Varnish Cache carries its load with one powerful server, without horizontal scaling, and server costs go down. When moving from Magento 2 to Laravel, a custom Varnish Cache keeps the platform fast even at peak times, also without scaling horizontally.

Since 2026, the free community version of Varnish Cache has been called Vinyl Cache. What the split means and where the cache is typically bypassed is covered in the guide Varnish or Vinyl Cache.

Does a faster page help with Google rankings?

Google states clearly that the Core Web Vitals feed into its ranking systems. Just as clearly, Google says that the most relevant page is still shown even if its page experience is mediocre. A better PageSpeed score won’t get you past competitors with the better offer or the better content.

Slow server responses have an often overlooked effect on Google: if the server responds slowly or with errors, Google lowers the crawl rate, meaning how often Google fetches pages. This matters mainly for large shops and portals with very many pages, because new and changed pages then get picked up later.

Speed has a more noticeable effect on revenue and costs than on rankings. A study by Deloitte for Google with 37 brands and over 30 million sessions found that being 0.1 seconds faster across four metrics, including server response time, went along with 8.4% more conversions in retail. At Rakuten 24, the faster version in an A/B test brought an 18% better TTFB and 53% more revenue per visitor. Figures like these apply to those companies and not automatically to your shop, but they show the direction.

How to measure the success of a faster application

A Lighthouse score doesn’t work as a goal for making an application faster. It is a single lab test on a simulated phone, sees neither your admin nor your server bill, and can be improved without a single customer noticing.

These values say more about success, each measured the same way before and after:

  • Server response time of the important pages, measured on the server, including the slowest requests, not just the average.
  • Duration of specific processes: checkout, search, login, the order list in the admin, the export for accounting.
  • Cache hit rate: what share of requests comes from the cache instead of keeping PHP and the database busy.
  • Server costs and load, in everyday operation and at peaks.
  • Field data in PageSpeed Insights and Search Console, about four weeks after the change.

What are the next steps if your application is slow?

Once you know which page is losing time, the cause is usually one of a few places in the code, the database or the cache. Finding it takes measurements on the server, not another score.

The Make your application faster and cheaper to run service from Unique-P starts with a fixed-price diagnosis that shows where the time goes and what each measure achieves. The measures follow after that, and values such as server response time, cache hit rate and server costs are measured and kept in check.

If Black Friday, a newsletter or a TV ad is coming up, read Planning for traffic spikes first. And if someone suggests simply raising the PHP version: what that does for speed is covered in the guide Does a PHP upgrade make your application faster?

Sources

  1. [1]Time to First Byte (TTFB) · web.dev, Google
  2. [2]Web Vitals · web.dev, Google
  3. [3]Optimize Largest Contentful Paint · web.dev, Google
  4. [4]About PageSpeed Insights · Google for Developers
  5. [5]Core Web Vitals report · Search Console-Hilfe, Google
  6. [6]Understanding page experience in Google Search results · Google Search Central
  7. [7]Crawl budget management for large sites · Google Search Central
  8. [8]Core Web Vitals Technology Report, Schweiz, mobil, Daten September 2026 (je Technologie abgefragt) · HTTP Archive, retrieved November 10, 2026
  9. [9]Web Almanac 2025, Performance · HTTP Archive
  10. [10]Milliseconds make millions · web.dev, Google
  11. [11]How Rakuten 24's investment in Core Web Vitals increased revenue per visitor by 53.37% · web.dev, Google

Frequently asked questions.

What is a good server response time?

As a good server response time, Google names a TTFB (Time to First Byte) of at most 0.8 seconds, measured on real visits. Above 1.8 seconds it counts as poor. Because TTFB is part of the time it takes to display the largest element (LCP), the 2.5-second limit for LCP becomes hard or impossible to reach with a slow server response.

Why does PageSpeed Insights show different values on every test?

PageSpeed Insights shows different values on every test because the lower part of the report is a single lab test on a simulated phone. It fluctuates with the network, the server and chance. The upper part with the field data is more reliable: real visits from the last 28 days. These values change slowly, but they show what your customers actually experience.

Does a bigger hosting plan help with a slow website?

A bigger hosting plan only helps if the server is at its limit, for example when the processor is constantly maxed out or requests are queuing up. If, on the other hand, a single page takes long because it sends hundreds of database queries or misses the cache, it takes almost as long on a bigger server. The plan then costs more every month, and the cause remains.

Does a better PageSpeed score bring more visitors from Google?

A better PageSpeed score rarely brings noticeably more visitors from Google. Google uses the Core Web Vitals in its ranking systems, but still shows the most relevant page even when its page experience is mediocre. Speed has more effect on revenue and costs. One effect mainly concerns large websites: if the server responds slowly or with errors, Google crawls less.

Does a CDN help?

A CDN (content delivery network) helps with images, scripts and other static files, and, with suitable cache rules, with entire pages too. Cart, login, customer account and admin always come from your server, though. If the response there is slow, a CDN doesn’t change that.

Varnish or Vinyl Cache