Skip to content
Problem · Speed

A slow web application: where the seconds go, and how to get them back

Dashboards, client portals, reports and admin panels slow down as the data grows. The cause usually sits in one of two places: the server takes seconds to answer, or the screen loads too much before it shows anything. We measure both, fix the bigger cause first and prove it with numbers.

Where we start
Measure the server and the page
Proof
The same test before and after
Our own sites
Lighthouse 90+ on every deploy
Challenges

What usually goes wrong, and our fix

  • ProblemScreens wait seconds for the server before anything appears.

    Profiling and slow-query logs show which request is to blame, and we fix that one first.

  • ProblemDashboards and reports get slower every month as the data grows.

    We find the query that recalculates everything on every view and let the database read a stored result instead.

  • ProblemThe app slows down exactly when the most people use it.

    We recreate the peak with a load test first, so the fix targets the real limit, not a guess.

  • ProblemScreens download megabytes of data and scripts before they respond.

    Lighter API responses, pagination, and scripts split so each screen loads only what it needs.

  • ProblemEvery release risks making the app slow again.

    A check on every deploy that stops a release when speed drops below the target.

Self-check

Server or page? A five-minute check

The first diagnosis doesn’t need us. All it takes is a free Google tool and the screen your users open most.

  1. Open PageSpeed Insights, paste the address and choose Mobile. For a screen behind a login, use the Lighthouse tab in Chrome DevTools instead: PageSpeed Insights only sees public pages. Our free site check runs the same test for you.
  2. Read the field data first, if the page has it: that is what real visitors got over the last 28 days. Lab scores change from run to run.
  3. Compare the three Core Web Vitals with Google’s thresholds. A page passes when at least three visits out of four are in the green.
  4. Look at Time to First Byte. If it is in the red, start with the server and the database. If it is green and the screen is still slow, start with the page itself.

Google’s thresholds for a fast page

  • LCPwhen the main content appears

    Goodup to 2.5 sNeeds work2.5–4 sPoorover 4 s

  • INPhow fast the page reacts to a tap or click

    Goodup to 200 msNeeds work200–500 msPoorover 500 ms

  • CLShow much the layout jumps while loading

    Goodup to 0.1Needs work0.1–0.25Poorover 0.25

  • TTFBhow long the server takes to answer; not a Core Web Vital, but it shows where to look

    Goodup to 0.8 sNeeds work0.8–1.8 sPoorover 1.8 s

Each number is taken at the 75th percentile of visits, for phones and computers separately.

Source: web.dev, Core Web Vitals and Time to First Byte.

Overview

Two slow screens that need different fixes

A load looks like a queue: the server answers, then the browser fetches styles, fonts, images and scripts. Where the queue is longest tells you what to fix.

The server is slow

  1. Server answers
  2. HTML
  3. Styles and fonts
  4. Main image
  5. Scripts
  • Server
  • Page
  • Main content appears

Most of the wait passes before the first byte arrives. Fix queries, caches and the server first; a lighter page won’t help much.

The page is too heavy

  1. Server answers
  2. HTML
  3. Styles and fonts
  4. Main image
  5. Scripts
  • Server
  • Page
  • Main content appears

The server answers quickly, but the screen downloads too much before it shows the main content. Lighten the page first.

Schematic, not a measurement: the bars show the shape of each problem, not real timings.

Steps

Four steps from slow to fast

  1. 01

    Measure

    Real numbers first: server response times, slow queries, page weight and Lighthouse on a phone.

  2. 02

    Fix the biggest cause

    Usually it is the server or the database. A cache can hide a slow query, so we fix the query first.

  3. 03

    Lighten the screen

    Images, data, fonts and scripts: each screen loads only what it needs to show first.

  4. 04

    Prove it and keep it

    Load tests before and after, and a speed check on every release, so the result doesn’t wear off.

What we built

What we have built

  • A major non-⁠profit foundation: public donation reports that summed millions of rows on every view now read ready-made totals, proven by k6 load tests.
  • AM Tech: a B2B catalogue that stays fast as it grows, thanks to caching and background rebuilds of heavy data.
  • DrawHome.com: 3D models compressed for the web, so heavy scenes open on ordinary laptops and phones.
  • Dura: our own HLS video server, so project videos start quickly on any connection.
  • rost.company and rosshoncharuk.com: sites in five languages with a deploy gate that blocks any release scoring below 90 in Lighthouse.

Non-⁠profit foundation: donation reports, before and after

  • Before: a report opened inmore than 5 s
  • After indexes and ready-made totals, before any cacheonly 0.5 s

Ten times faster before the cache. With the cache, the average response of the report API fell from 1.9 s to 0.71 ms (k6, 20 virtual users).

From the non-⁠profit foundation case study.

Cases

All solutions

Features

Features we’ve shipped

  • ProblemEvery page view summed millions of rows, so pages loaded in seconds.

    Reports read from ready totals, not recalculated

    Non-⁠profit foundation
  • ProblemReport pages slow down exactly when most people are watching.

    Public reports that hold up during peaks

    Non-⁠profit foundation
  • ProblemThere was no proof that changes actually help.

    Load tests that prove the speed-up

    Non-⁠profit foundation
  • ProblemPages slow down as the catalogue grows.

    A catalogue that stays fast as it grows

    AM Tech
  • ProblemHeavy project videos load slowly and stall on phones.

    Videos that start fast on any connection

    Dura
  • ProblemHeavy 3D models make pages slow, especially on phones.

    3D model compression for fast loading

    DrawHome.com
  • ProblemAny release can quietly break pages, speed or accessibility.

    Deploy gate that blocks broken releases

    rost.company

All features in the catalogue

FAQ

Questions and answers

Is it the server or the page?

We measure before we guess. If the first byte takes seconds, it is the server or the database; if the server is quick but the screen is heavy, it is images, data, fonts and scripts. Often it is both, and we start with the bigger one.

Will a CDN or a cache fix it?

Sometimes it only hides the problem. A slow query stays slow behind a cache and comes back the moment the cache misses, so we fix the cause first and add caching after it.

Can you test screens behind a login?

Yes. PageSpeed Insights only sees public pages, so for dashboards and portals we measure in the browser with a test account and load-test the API that the screens call.

Do we have to rebuild the app?

Usually not. Most speed problems are fixed inside the existing system. A rebuild makes sense only when the platform itself is the limit, as with the heavy WordPress admin we replaced for PeakLoad.

Do Core Web Vitals affect Google rankings?

They are part of how Google judges page experience, but useful content matters more. For screens behind a login they don’t matter for search at all; there, speed is about the people who use the app every day.

How do you prove it’s faster?

With the same measurements before and after: load tests such as k6 on the same data for the server, and Lighthouse on a phone for the page.

Let’s talk

Which screen is slowest for your users?

Send us its address and what feels slow through the form below, and we’ll reply in writing with where we would look first. A 30-⁠minute call works too.

Wrocław, Poland · Central European Time

Prefer to write? Describe the task in two or three lines and we’ll reply by email.

    We use your details only to reply. Privacy

    Thank you! Your message is with us, and we’ll reply by email.

    Test mode: the form works, but this preview sends nothing.

    Book a 30-⁠min call