A Performance Budget for a Small Website
Budget the HTML, images, fonts, and scripts separately so a slow page has a clear explanation.

A performance budget puts limits on the resources a page asks a reader to load and the work a browser must do afterward. Make the budget for a specific entry page on a specific class of device. Divide it among HTML, CSS, fonts, images, and JavaScript. That turns a slow result into a concrete question about what became expensive.
Pick a representative start
A small site usually has at least two journeys worth measuring: arriving on the homepage and arriving straight on a long article. Both should work with an empty cache. Repeat the article test with a warmed cache to see what navigation within the site costs. If your pages have different article imagery or embed types, include a heavy but realistic example alongside the easiest page.
Set a mobile device profile and a connection profile for your tests. A single measurement from a large wired workstation can hide the cost of parsing scripts and decoding oversized images on a lower-power phone. Development tools can simulate some constraints, and a real older phone can reveal the friction in gesture responsiveness and scrolling that a chart cannot show on its own.
Use a limit with an owner
An image budget might set a separate maximum for a lead cover and for images below the first viewport. The image editor or build system can then decide what is worth extra detail. A font budget might support one small family and a fallback. A script budget can reserve space for the category drawer while refusing to inherit a large UI library for a single click interaction.
Track transferred bytes and total resource sizes separately. Compression reduces bandwidth. A compressed script can still expand into a large program the browser has to parse and execute. A tiny high-resolution image file can still require a large bitmap to be decoded and held in memory. Both forms of cost matter.
Turn a headline figure into a set of decisions
Consider a fictional review that allows 220 KB of transferred resources for the first screen of a mobile article. A possible allocation is 15 KB for HTML, 22 KB for CSS, 28 KB for a small font, 12 KB for code, and 140 KB for the leading image. The sum is 217 KB. That leaves little space for an extra remote feature before the first screen. It leaves room for different decisions on pages with fewer assets or an image that encodes especially well. The figures reflect that sample layout and connection.
Give the sheet a row for when the first network request starts, which loads can overlap, and what must finish before the browser can show usable text. A dependency loaded after a slow script can be expensive because the sequence prolongs the wait, even if the downstream file is small. An asset that the browser discovers directly in HTML can often begin earlier. A repeated external hostname can also introduce a connection setup cost the first time it is used. Request order and dependency depth belong beside the total bytes.
Add one expectation for work after display. A category button that opens a simple menu should remain responsive while later images arrive. A page with a long article should scroll comfortably on the phone you chose to represent its readers. Capture a trace if the test feels irregular. It can reveal a large task that blocks the main thread or a repeated layout cost. A budget item that points to an owner and an observable symptom is easier to act on than an overall grade alone.
Make the gallery fit the actual space it occupies
A homepage feature might span nearly the whole content width on a desktop and become a smaller image at a narrow layout. First measure the rendered element at both sizes. Then list the source widths and which one the browser selected on the representative phone. A mobile phone with a high device pixel ratio can reasonably select more source pixels than its layout width. The right range balances adequate detail and download time.
When CSS changes how many cards fit on a line, make sure the responsive image hint still describes their approximate width. A cards layout that moves from one to two to three columns can otherwise claim every card takes up the full viewport. The browser has to choose a resource using the information it has at that time. Compare the actual selected URL in developer tools after rebuilding the page. This verifies that the responsive choices are used as designed.
Consider what is still readable if a font is slow to arrive. Use a fallback with metrics close enough to keep paragraph widths, heading wrapping, and navigation movement stable. Test an empty cache and a narrow width where a line is just on the edge of wrapping. The same case is useful after changes to label text or the display font. Shorter and more predictable font requests make a bigger difference when they sit on a path to a first useful impression of the article.
Measure the effects the reader notices
Use browser performance guidance to check responsive images and loading order. Note how quickly the largest visible content becomes available, whether controls respond while resources arrive, and whether late-loading items displace what the reader is trying to tap. Explicit image dimensions are a simple improvement for layout stability. They preserve a box before the pixels arrive.
On an example homepage, the first large photo may dominate time to useful content. Its visible size can be large enough that aggressive compression draws attention, while its source dimensions can still exceed what is needed at narrow widths. Multiple responsive candidates can preserve the desktop crop and avoid downloading it on a phone. Lazy loading is useful for further-down cards. The lead photograph often needs the opposite treatment because it is part of the first view.
Combine a controlled run with observations from actual use
For a controlled run, keep the browser, device conditions, network simulation, entry URL, and cache state the same. Run it several times. Record the range around a typical value. A single refresh into a full cache can look fast for a part of the audience that has already loaded the assets. A first navigation from search or a social bookmark asks the page to make the same content available without that help. The two scenarios answer complementary questions.
Where the site has suitable field observations, compare them with the controlled result. Largest Contentful Paint (LCP) measures when the largest visible text or image element renders. Interaction to Next Paint (INP) measures how promptly the page visibly responds to interactions across a visit. Cumulative Layout Shift (CLS) measures unexpected movement of visible content. Aggregates from actual visits cover a mix of devices, journeys, and network conditions. They can help locate a group of pages that performs worse than your test template and guide a controlled investigation of network requests or browser tasks.
Keep privacy and reader experience part of any measurement setup. A large analytics script can itself change the behavior it was added to observe. A small team can learn a lot from traces on pages they already operate and repeatable mobile tests without leaving additional instrumentation enabled everywhere. If field reports are available, understand how pages are grouped and which time period the observations cover before using a change as evidence of an improvement.
Budget for an ordinary addition
Imagine adding a reading-progress marker to an article. Try the smallest implementation that serves the purpose and compare it with the previous build. Inspect the page while it is scrolled at natural speed, and use a mobile page where other work is arriving at the same time. Record whether the addition creates new requests, delays text, or introduces work on every scroll. That comparison gives the team a concrete price for the interface decision and a baseline if the implementation grows later.
Write a short check that names both the resource and what the reader notices when it grows. It can show which image or asset crossed the limit and let a maintainer inspect the affected route. Test a case that is expected to cross the threshold, such as an intentionally oversized sample in a local copy, to confirm the check is sensible. The budget will age better if a change can deliberately update it along with a reason that reviewers can test.
Use the same approach for editorial changes that arrive outside the development cycle. A small batch of new covers can include one complex night photograph that compresses differently from daylight images. Let the publishing review flag that particular file and inspect it at its actual display size. A photo with a large empty border might benefit from a tighter crop. A difficult texture may deserve a slightly larger allocation on the one page where it matters. Save both the chosen rendition and the measured result. When the homepage changes to feature a different article, you can check the new lead quickly because the baseline still describes the same layout.
Leave room for the next feature
Add checks for only a few properties you can interpret. The first template check might report compiled script size, first-page cover size, and number of remote requests. Set a review threshold that gives a specific maintainer a chance to decide if a change earns the extra cost. A numerical limit with no plan for exceptions often encourages creative accounting.
When a page becomes slower, compare the last working snapshot and the current page under the same conditions. You may only need to correct an image hint or move an optional script after the initial render. Document what the sites were intended to load and why, then keep the tests alongside the adjustments that made the biggest difference.
Keep one example of a regression and its fix next to the budget. A short recording of an affected page can help reviewers see whether text, imagery, and navigation arrived in the expected order. Give the recording a date, the tested viewport and connection conditions, and the relevant request or task. Future reviewers can reproduce the case when considering a component that will appear on every article.




