Before optimizing a website, capture a baseline that you can repeat. Record the tested address, whether the run was cold or warm, the browser, viewport and network setup. A faster number means little if it came from a different host or cache state.
Measure a single navigation
Open a page you control in a new browser context, wait until the load event completes and inspect the first navigation entry in the performance panel or with the browser's Performance API. Record when DOMContentLoaded and load ended and record the decoded HTML body bytes among the response attributes. If an event measure is still zero, check whether you read the entry before that event had finished.
Repeat using the same address. Keep the first run separate from repeat visits because the browser may reuse assets. Compare like with like when testing a new release. For example, compare the first load from a fresh context in the old release with a first load from a fresh context in the new release.
Match the measurement to the question
The decoded HTML size is a byte count for the document after transport decoding. It does not sum scripts, images and fonts. The load event also has a different meaning from the time at which a visitor can see or interact with the page. A quick loopback observation, such as the ByeGA4 Lab experiment, is useful for exercising the measurement method rather than predicting real visitor experience.
For a performance fix, record what changed and which metric should respond. If you compressed an image, first prove its transferred size changed. Then investigate whether the image was on the critical loading path before drawing conclusions about page responsiveness.
Make a two-pass worksheet
Use one tab and note the URL, browser, device, cache setting and whether a service worker has control. On the first pass, open a fresh context and record the navigation type plus responseStart, domContentLoadedEventEnd and loadEventEnd relative to navigation start. Reload in the same context and label that pass as a reload. Transfer and decoded body bytes, where available, answer different questions. Conditional reuse and intermediary caching can change transfer bytes without changing the displayed HTML.
If a navigation reports responseStart at 120 ms and domContentLoadedEventEnd at 410 ms, the gap is 290 ms. Work in that interval can include downloading and parsing HTML, executing scripts and browser scheduling. Find a trace event before calling the entire gap server processing. Use several comparable runs for a decision, and keep the raw entries when a value changes after a release.