How to Run a Website Performance Audit
A step-by-step method for measuring a site's speed, finding the biggest causes of delay and turning findings into fixes.
Key takeaways
- Field data from real visitors tells you whether there's a problem, and lab tests help you find out why.
- Audit a handful of representative page types, since one home page test says little about the rest of a site.
- Break loading time into server response, resource delivery, rendering and interactivity before choosing fixes.
- Rank findings by likely effect and effort, then re-measure under the same conditions after each change.
A performance audit answers three questions: how fast is your site for real visitors, what causes the delay, and which fixes are worth doing first. You can run a useful one in an afternoon with free tools: field data if you have it, a lab test or two, a look at the network waterfall and a short, prioritized list of changes.
Below is a method you can repeat. It works for a small business site as well as a large one, with only the depth changing.
Before you start: decide what matters
Pick the pages that carry your traffic or your goals. For a shop, that might be the home page, a category page, a product page and checkout. For a publication, the home page and a typical article. Pages built from the same template usually share problems.
Note who your visitors are. If most arrive on phones, test with a mobile profile first. Your office computer on a fast connection will flatter almost any site.
Write down the date, pages, tool settings and results. Without a baseline you can't show that anything improved.
Step 1: Look at field data
Field data is measured on real visitors' devices. Lab data comes from a controlled test run. They often disagree, and both are useful.
The main user-centered measures are the Core Web Vitals. The published "good" thresholds, assessed at the 75th percentile of visits, are:
Thresholds can be revised, so confirm them in current documentation. Basis: Google's published Core Web Vitals thresholds.
Sources of field data include the Chrome User Experience Report, shown in PageSpeed Insights for sites with enough traffic, the Core Web Vitals report in Google Search Console, and your own real user monitoring script. If your site is too small for public datasets, collect your own with the open source web-vitals library, taking care to avoid gathering personal data you don't need. See analytics without invading privacy.
Reading field numbers sensibly
The 75th percentile means that three quarters of measured visits were at least that good. An average would hide the slow experiences that matter most. Split the data by phone and desktop, since a site can pass comfortably on one and fail on the other.
If you can segment further, by page template or broad region, patterns appear quickly. Slow results only on article pages suggest a template problem. Slow results only far from your server suggest distance, which a content delivery network can reduce. Be careful with small samples: a handful of visits can swing a percentile wildly.
Step 2: Run lab tests
Use Lighthouse, built into Chrome's developer tools, or an online testing service such as WebPageTest that lets you choose location, device and connection speed.
Make runs comparable:
- Use a private window or a clean profile so extensions don't interfere.
- Choose the same device and network profile each time.
- Run each page at least three to five times and use the median.
- Test both a first visit with an empty cache and a repeat visit.
- Note anything that varies, such as ads or cookie banners.
Treat the overall score as a summary. The individual measurements and diagnostics are what guide your work. Lab tools also can't measure real interaction delay without simulated input; Total Blocking Time serves as a rough lab stand-in.
Choosing test conditions
Your settings should resemble your audience. A mid-range phone profile with a throttled mobile connection is a reasonable default for a consumer site. An internal business tool used on office desktops can be tested accordingly.
Remember that simulated throttling is an approximation. Testing on a real, modest phone once during the audit is worth the effort, because you'll notice stutter, delayed taps and heavy scrolling that a report may not convey. Record a short screen capture so colleagues can see what the numbers mean.
Test the journeys as well as the landing page. A visitor who arrives, searches, opens a result and adds it to a basket loads several pages with a partly filled cache. A slow second step can lose people even when the first page is excellent. Consent banners deserve a run both before and after acceptance, since accepting often releases a batch of new scripts.
Step 3: Separate server time from everything else
Time to First Byte is how long it takes before the response starts arriving. curl can break it down on Linux or macOS:
curl -o /dev/null -s -w "dns %{time_namelookup}\nconnect %{time_connect}\ntls %{time_appconnect}\nfirst-byte %{time_starttransfer}\ntotal %{time_total}\n" https://example.com/ Each figure is cumulative seconds from the start. The gap between tls and first-byte is roughly one network round trip plus the time the server spent preparing the response. In Windows PowerShell, use curl.exe and replace /dev/null with NUL.
Run it several times, and from more than one location if you can. A large DNS figure suggests looking at your DNS provider. Slow connect and TLS suggest distance. A long wait for the first byte points to application code, database queries, missing page caching or an overloaded server. The server side of that investigation often starts with reading server logs.
Step 4: Read the waterfall
The Network panel shows each request as a bar on a timeline. Look for these shapes:
- A long first bar. Slow server response; everything else waits.
- Redirect chains. Each hop costs a round trip. Link straight to the final URL.
- Staircases. One file reveals the next, as with CSS imports or scripts loading scripts.
- Late discovery of the main image. It's referenced in CSS or injected by script, or marked lazy by mistake.
- A few huge bars. Oversized images, video or bundles.
- Many origins. Each new third party adds connection setup.
Step 5: Inspect weight, rendering and interaction
Total the bytes by type. Then ask:
- Are images sized to their display dimensions and in efficient formats? See image formats for speed.
- Is text compressed? Check for
Content-Encoding. - Do static files carry long cache lifetimes? See Cache-Control headers.
- Which stylesheets and scripts delay painting? See render-blocking resources.
- How much JavaScript runs during load, and from whom?
For responsiveness, record in the Performance panel while you open a menu, type in a search box or add an item to a cart. Long tasks, those over 50 milliseconds on the main thread, delay the page's reaction. Check the call stacks to see which script owns them. CPU throttling in the tool gives a better impression of a modest phone.
For layout shift, watch the page load in slow motion. Typical causes are images without dimensions, banners inserted above content, and late-loading fonts.
Step 6: Prioritize and report
A list of forty warnings rarely gets fixed. Group findings and rank them.
For each item, state the evidence, the affected pages, the proposed change, who owns it and how you'll verify it. For example: "Product page main image is far wider than displayed; generate two smaller sizes; web team; confirm earlier Largest Contentful Paint over five lab runs."
A sample finding
Here is how one hypothetical entry might read. Field data shows the main content on article pages appearing slowly on phones. Lab runs show a quick first byte, then a large lead image requested only after two scripts finish. The cause is that a script inserts the image. The change is to put an ordinary img element in the HTML with explicit dimensions and a high fetch priority. The check is five lab runs before and after, followed by a look at field data some weeks later.
Writing findings this way separates evidence from opinion. It also lets whoever does the work confirm that they fixed the thing you measured.
Third-party code
Audit tags separately. List every external script, what it does and who asked for it. Test with all of them blocked using the developer tools' request blocking, then compare. The difference shows what they cost together.
Remove those nobody can justify. For the rest, load them without blocking, delay nonessential ones until after the page is usable, and review the list on a schedule. Tag managers make adding scripts easy, so they need the same scrutiny.
What can go wrong
- Chasing one run. Variation between runs can exceed the effect of your change.
- Testing the wrong thing. A logged-in view, a staging server with caching disabled or a consent wall may not resemble what visitors get.
- Optimizing the score. Some tricks raise a lab number while making the experience worse.
- Breaking features. Aggressive deferral and combining can stop forms or analytics working. Test the site, not just the timing.
After the audit
Field data updates slowly, since public datasets aggregate several weeks of visits. Use lab tests to confirm a change immediately, and field data to confirm it helped people.
Then guard the gains. Setting performance budgets turns your findings into limits that warn you before the site drifts back. Repeat the full audit after redesigns, platform changes or new third-party tools, and a lighter check at regular intervals.