CYBERDZYNES Independent digital design magazine

Tools & Workflow / Performance notes

Make a page-weight test you can repeat

Compare like-for-like network runs and follow the extra bytes to the decision that added them.

Fix the test conditions, trace the increase to specific requests, then repeat the same measurement after one change.

A page can look unchanged in a design review and quietly become much heavier. Perhaps a thumbnail now points to the full photograph. Perhaps a new section brings in another font. A useful weight test makes the increase easy to locate and gives the team a way to prove that a proposed fix addresses it.

Choose a route and an end point

Pick one representative page and write down the URL, browser, viewport, device pixel ratio and starting state. Keep consent choices and sign-in the same; either can change the request list. Decide when you'll stop collecting before you start. For example, measure the first ten seconds from navigation without scrolling, then record a separate pass that also scrolls to the recommendations. Don't compare the first pass from one version with the second pass from another.

Start with the Network panel open, clear its request log, remove filters and disable the browser cache for the first comparison. Note whether a service worker still serves resources, or bypass it for both runs when measuring direct network delivery. Later, repeat with normal caching to see what a returning reader would encounter.

Read transfer totals and individual requests

Record the transferred total and request count. Keep the loaded, uncompressed total in a separate column: it answers a different question from how much data the browser transferred. Sort by transfer size and note the largest files, their resource types and which page element or script asked for them. Repeat the same run a few times to see whether rotating content or a slow request near your stopping point changes the result.

Take a fictional museum listing. Suppose a baseline transfers 380 kB and a new version transfers 920 kB over the same window. If 520 kB of the 540 kB increase comes from two newly loaded thumbnail requests, start there. Check their selected image URLs and rendered sizes before spending an afternoon trimming icon files.

Change one thing and repeat

For the museum listing, try providing smaller source candidates for those thumbnail slots. Run at the original viewport and pixel ratio, then check a dense screen and a wider layout to make sure the smaller variants still look good when they are selected. Compare both the individual requests and the total. If the request shrinks but the total stays flat, look for a second copy fetched by an old preload.

Keep the design check in the loop. A lighter image that loses a detail needed to choose an exhibit is a poor trade. Transfer size alone also won't tell you when the page becomes usable; investigate rendering and interaction separately if speed is the actual complaint.

Keep the baseline small enough to maintain

Record the route, conditions, transfer total and main contributors beside the change. Agree on a review threshold for that page rather than borrowing a universal number. The next reviewer should be able to follow the same steps and explain a material increase without reconstructing your browser session.

Choose a comparison that can change a decision

Imagine a fictional ferry information site is adding illustrations to its timetable and a fold-out map of boarding points. The team wants to know whether an ordinary timetable visit gets heavier, and what the map itself costs a reader who chooses to open it. Put these in two separate checks. An initial load budget is easy to misread when half the runs include an extra interaction. One total for the page can't tell you who actually pays for which feature.

Use a quiet timetable route with fixed content and a busier route whose schedule includes notes about a vehicle crossing. Begin with one of them. Select the second because it could change which images or components appear, not because testing another route looks thorough. Record the public representation you're trying to approximate and put any deliberately quiet fixture in a separate comparison from the variable page.

Name the action and the stopping rule. For an opening visit, start with the timetable route and don't touch the page for the chosen collection period. For the interactive case, start the same way, then open the map at a defined point. Keep those runs separately labelled. If a request hasn't finished by the stopping time, note its status. Waiting longer on only the heavier revision makes the resulting two totals difficult to interpret.

Write a provisional decision beside the test. For example: 'If map artwork is fetched on an unopened timetable, investigate moving that work to the action. If only the opened map gets heavier, compare the value of the clearer boarding points with its extra cost.' That statement tells the reviewer what they are measuring for. It is more useful than promising a reduction before you've seen where the bytes went.

Keep a comparable baseline when the preview changes

For the ferry example, retain the baseline revision and the same timetable data before the new artwork lands. A comparison across different days may also pick up a change to the number of routes, an announcement or a seasonal photograph. If a fixed data fixture isn't available, record the content you observed and note visible differences. Keep the result as an observation about those two runs rather than attributing every change to the map.

Start new and old runs on comparable origins or previews when practical. Record differences you can't remove, such as a preview that includes a banner or uses a separate delivery path. If one version includes a development script that the other doesn't, either compare equivalent configurations or give that script its own line in the explanation. Removing it from only one total without comment can make the comparison look more exact than it is.

A pair of runs from a single browser profile can still begin differently. In the ferry example, the stored choice of crossing might enable an extra notice, and an inherited consent choice could change a request list. Write down the starting values that matter. After doing the interactive check, restore them before another baseline pass. Otherwise, opening the map in the first run could make the second run start on a different version of the route.

When you notice a mismatch, don't average it away. Save a note about the influence you suspect and choose a smaller controlled comparison. For instance, run both revisions with the same crossing and no schedule note, then measure the note separately if it actually ships. You can still acknowledge the untidy public route; the cleaner case gives you one claim about the proposed change that the team can repeat.

Account for the increase by resource group

Use a fictional result to practise reading the comparison. Suppose an unopened timetable transfers 310 kB in the baseline and 500 kB after the change. The new run includes 170 kB of map artwork and 30 kB of a changed timetable illustration, while a former 10 kB image is now absent. That accounts for the extra 190 kB. Recording both additions and removals prevents a reviewer treating every large request in the new log as new overhead.

Sort the requests into groups that explain the feature, rather than grouping purely by extension. The boarding map may use a graphic and a small supporting file; the timetable illustration may share a type with both. Keep the name or identifying part of each request and, when needed, a note about which component asked for it. That gives somebody a way to check a proposed fix without having to recognise arbitrary filenames.

If you can't explain a remainder, don't invent an attribution. For instance, an artwork request might differ across repeats while the main document shows a small change on each run. Compare the stable contributors first and keep the uncertain part visible. One useful record could say that a named map asset explains most of an increase, while changing timetable notices make the exact page delta vary. That is enough to prioritise an investigation.

Inspect the detail beneath a category total before making a broad optimisation. If the map graphic is the largest object, moving it might recover more on the unopened screen than adjusting every small timetable drawing. If the map is already kept out of the unopened run, start with its own interactive total instead. The purpose of grouping requests is to show where a visitor pays for something, not just where a file lives.

Report three costs without adding them together

For this example, keep three named results: the initial timetable visit, what changes when the reader opens the map, and a repeat visit under the project's normal caching conditions. A cache-controlled run is valuable for isolating additions. The repeat visit answers another question. Do not subtract a returning-reader total from a first-visit budget and describe the difference as an optimisation. You changed how the visitor began.

To estimate the interactive cost, keep the request timeline and identify the point where you opened the map. Compare with a same-length idle run. If a scheduled timetable update occurs during both runs, it may explain a late request that has nothing to do with the map. When you can't establish what triggered an item, leave it unassigned. A total and a short explanation of unassigned activity are preferable to a falsely precise feature cost.

Repeat the relevant case after a change intended to defer the artwork. Check that the unopened timetable no longer fetches the identified file during the window, and that opening the map still reveals the usable artwork. Whether the total cost for the map opener changed is a separate finding. Deferring the same asset can improve the first visit without making the combined journey lighter.

For the returning visit, follow a defined ordinary sequence. For instance, finish a visit with the map closed, navigate away, then return and open it. A revisit after previously opening the map is a different case. Keep it only if it informs a real decision. Naming the prior action makes the comparison easier to repeat and avoids presenting a single warm result as universal for all regular readers.

Watch for a smaller total that buys the wrong thing

Imagine the team compresses the map until the two boarding points no longer read as distinct at the intended size. The transfer reduction is real, but it doesn't answer whether the release helps a traveller choose the correct entrance. Compare the compressed and original candidates inside the fold-out. Look for one or two required details, such as the foot passenger route and the vehicle gate. Ask whether those details are still available in a reliable text alternative as well.

A design alternative might show a simple schematic first and offer a separate more detailed version. Measure the first map view and the deliberate detail action separately. Check that you haven't moved information everyone needs behind an optional request. A lighter default is worthwhile only when the default continues to perform its job. The test should describe which task the smaller version still supports.

Another apparent improvement might come from a missing request rather than a deliberate change. If a route displays an empty map region or the fixture lacks the busy crossing that enables it, the result may be artificially cheap. Verify that both versions really show the same intended feature. Keep a visual record when the choice depends on rendered detail, and keep it separate from the numbers supporting the transfer comparison.

Likewise, a smaller result on one viewport may leave a larger layout untouched. After the main change is verified, try a variant where different artwork is expected and record which candidate arrived. Avoid claiming the average visitor's saving unless you have evidence about which version visitors receive. A narrowly framed claim about the tested case is useful on its own and gives the next reviewer something concrete to extend.

Leave a baseline with a trigger for review

Write the ferry baseline as a short set of conditions and outcomes. Include the revisions, route and timetable selection, window, cache treatment and map action. Record the largest contributors and the explanation for any material delta. If there is a screenshot, label whether it shows the initial timetable or the opened map. Keep private or unnecessary request details out of anything shared beyond the team.

Set review triggers based on the decisions this team can make. A new map asset in the unopened visit may always deserve a look, even if the page sits below an overall limit. A deliberate increase in the optional high-detail chart may call for a separate readability and request comparison. In either case, describe who can approve the trade and what evidence they need, rather than treating every increase as automatically bad.

When a future change exceeds a threshold, compare it with the baseline before updating that baseline. If the increase is intentional and accepted, preserve the old value with the reason for the new one. Replacing prior measurements with each successful release can conceal an accumulation of individually small costs. A concise history of accepted material changes is enough to show what has happened without trying to store every browser session.

Try this on the next change that introduces an optional panel, chart or illustration. Pick one route, write down a cold path and an activated path, and identify one detail the feature needs to preserve. Measure both before asking for a blanket reduction. If the file has to travel, you will know which visitor needs it and where to look for a less costly implementation.

References