chiefletterAll stories

Tools & practice / CHIEFLETTER JOURNAL

How to Debug a Slow Website Without Guessing

Find the slow part of a website with browser measurements, a repeatable test, and one change at a time.

Code displayed on a computer screen during a website performance check
Photography via Unsplash

Name the slow task

“The site is slow” is a feeling, not yet a useful bug report. Pick one page and one task: open the product page, search for an item, or submit a form. Note the device, browser, network, and whether the page has been opened before. A first visit often behaves differently from a repeat visit because the browser may have cached files.

Write down what feels slow in observable terms. Does the heading appear late? Does the button ignore the first tap? Does typing lag after a list grows? These point to different causes. If the problem occurs only for one person, ask for the page address, approximate time, device, and steps. Avoid asking them to install a profiler before you can reproduce the issue.

Pick a simple timing method before changing code. Browser developer tools can show network requests, scripting time, and layout work. A field monitoring dashboard shows what real visitors experience. Do not compare a laboratory run on a fast laptop with a phone on a weak connection and call the difference a code regression.

If you do not have performance monitoring, start with a small manual record rather than buying a service immediately. Capture the page, the time, the browser, and the task. If several people report the same delay, compare their conditions. If only one route is slow, inspect the resources unique to that route before changing a shared component.

Separate download time from page work

Open the Network panel, reload the page, and sort by duration or transferred size. A large image, a slow API, and a blocked font can all delay what a visitor sees. Check whether the request waits before receiving data or spends time transferring it. Those are different problems and need different fixes.

Use the Performance panel when the network looks healthy but the page still stutters. Record a short trace while repeating the task. Look for long scripting tasks, repeated layout recalculations, and expensive rendering. A trace is easier to read when it covers one action rather than a whole browsing session.

Check both an empty cache and a repeat visit. A page that feels quick to its developers may rely on files already stored in their browsers. Test at the viewport and device that matter to the person reporting the issue. If possible, compare a real mid-range phone with the desktop simulation.

Trace one request from screen to server

If a page waits for data, follow the request that supplies it. Record the endpoint, response time, status code, and response size. In the browser’s Network panel, inspect the timing breakdown. If the request itself takes most of the time, check server logs and database traces before rewriting the interface.

Look at the number of requests as well as their individual duration. A page can feel slow because it makes many small requests in sequence. Requests that do not depend on one another can sometimes run in parallel, but parallel work increases load and should be measured under realistic conditions.

For an API response, ask whether the browser needs every field and record returned. A list page may need a title and a small image, not a complete history for each item. Reducing payload size helps only if the data is unnecessary. Keep the response contract documented so a performance fix does not silently remove information another screen uses.

Change one likely bottleneck

Write a short hypothesis before editing: “The hero image delays the first useful view because the file is much larger than its displayed size.” Then make the smallest change that tests it. Resize the source image, choose a modern format where supported, and keep the correct crop. Compare the same task with the same settings.

If scripting blocks input, measure the specific code that runs during the delay. Defer nonessential work, reduce repeated calculations, or render only the visible portion of a long list. Do not add a framework or cache layer because it sounds faster. Extra machinery can add new work and make the page harder to maintain.

Keep a note of the before and after result, including the tool and conditions. A change from 1.8 seconds to 1.2 seconds is meaningful only when the same page, device, cache, and network settings were used. Repeat each measurement more than once. Network and system load introduce normal variation.

Check the experience, not only a score

A performance score can point to a problem, but it does not tell you whether the task works. After a change, reload the page and use it. Can someone see the main content, move through the form, and understand that a save finished? If a visual placeholder makes the page appear faster while hiding content, the experience has not improved.

Check layout shift while images and fonts load. Reserve space for images using their dimensions or an aspect ratio. Keep labels and buttons in place when a result appears. A page that jumps under a person’s finger can cause a wrong tap even when the load score looks acceptable.

Review keyboard and reduced-motion behavior if your fix adds animation or lazy loading. The main action should remain available to people who navigate without a pointer. Loading indicators should not run forever when a request fails. Include a clear retry or error message when the data is required for the task.

Keep a small performance record

Save the page address, device, browser, network profile, cache state, and steps you used. Note the measurement and the change. This makes the next regression easier to compare and discourages teams from arguing from memory. A short record is enough. It does not need a full report for every small improvement.

Set a practical target tied to the user’s task. For example, keep search responsive while results load, or show the first article text before a large decorative image finishes. A target helps the team choose a fix. “Make the score green” is less useful when the score does not reflect the interaction people care about.

If the page serves people across regions, compare results from more than one network location. A request to a distant server can add delay even when the server itself runs quickly. A content delivery network may help static files, but it does not fix a slow database query or excessive client-side work. Verify the cause first.

A practical example: a product page appears blank for two seconds, then loads. The network trace shows a 1.8 MB hero image requested before the title. Resizing that file and keeping its space reserved reduces transfer and prevents a layout jump. That result is stronger than changing three unrelated scripts and hoping one of them mattered.

A short working note

Try this with your work

Find the slow part of a website with browser measurements, a repeatable test, and one change at a time.

0 of 30 of 3 steps
Your note stays in this browser.

Problem note

Capture a useful technical observation.

Video resources

For a visual walkthrough related to this topic, see this YouTube learning resource. It opens a topic search so you can choose a current explanation that fits your level.

Frequently asked questions

What should I check first on a slow website?

Choose one slow task and reproduce it with a consistent device, browser, and network. Then use the Network and Performance panels to locate the time.

Does a high Lighthouse score prove a page is fast?

No. A lab score is useful evidence under its test conditions. Compare it with real user measurements and the task people need to complete.

Should I optimize every image?

Resize and compress images that affect load time or data use. Keep enough quality for the displayed size and avoid changing images that are already small.

Why does a site feel fast on my computer but slow on a phone?

Your computer may have a faster processor, better network, and cached files. Test on a representative phone and connection.