SEARCH & PERFORMANCE

Static Website Performance: Measure the Page People Visit

Measure a static release on slow connections, then improve fonts, images, caching and JavaScript based on what the browser shows.

TL;DR: Measure the production page on a phone-like connection before changing anything. Start with the first visible content, reduce unnecessary JavaScript, and reserve space for images and embeds. Retest the same path with a cold cache.

Introduction

Static website performance is about how quickly someone can see and use a particular page. A fast response from the hosting edge is only one part of that experience. A single large hero image, a font dependency or an oversized JavaScript bundle can make a site feel slow even when the HTML downloads quickly.

Choose a representative public page and a real next action. You might test a course landing page through its registration link, or a developer portfolio through a project detail. Keep those same steps when comparing versions, so an improvement on the homepage does not hide a new problem deeper in the site.

What is static website performance?

Static website performance is the speed and stability with which a browser renders and lets someone interact with published files. Common Core Web Vitals describe visible content, interaction responsiveness and unexpected movement. Lab tests help reproduce problems; field data can show what happens on real devices when available.

The biggest asset is not automatically the highest priority. An oversized image below the fold can waste bandwidth, while a smaller critical image can delay the content everyone sees. Before optimising, inspect the request timeline and find the thing that actually delays the next task.

Why the test setup matters

  • A repeated test with a warm cache can hide huge fonts or image downloads. Inspect at least one cold run.
  • Your workstation is not a reliable stand-in for a budget phone. Use CPU and network throttling or test on an actual phone.
  • A single score does not explain what changed. Save a comparison of timing, request sizes and visible behavior.

How to improve the first visit

Size and schedule images

Choose dimensions close to what your layout displays, and provide srcset if mobile and desktop need different output sizes. Set width and height or a stable aspect ratio to reserve space. Lazy-load images below the fold, but avoid lazy loading the image that carries the opening content if its delay is visible in a trace. Verify the browser selects the intended source at each tested viewport.

Load less JavaScript before interaction

Include scripts needed for the page's first task and defer heavier features that are irrelevant on that route. Split an editor or dashboard from the marketing site where the framework allows it. Check for large repeated effects, analytics loaded up front, or third-party widgets that block interaction. Do not assume a minified bundle is a small bundle; compare transfer size and main-thread time.

Keep fonts and caching predictable

Use an appropriate system stack or self-host only the styles and character coverage readers need. Choose a fallback that does not cause large layout shifts. For your own object layers, fingerprint immutable asset names before giving them long cache lifetimes. Keep the document's freshness and your host's unpublish behavior in mind; cache settings that work for fonts may be wrong for HTML.

ObservationFirst evidence to inspectExample adjustment
Headline appears lateFont requests and document startReduce font styles and set a suitable fallback
Page jumps during loadLayout shifts in traceReserve dimensions for media and embeds
Button responds slowlyMain-thread tasks around interactionReduce bundle work or load heavy features on demand

Practical steps

  1. Open the built site with a clean cache and record a baseline for a public route.
  2. Use the trace to identify one bottleneck. Record the relevant payload sizes and files.
  3. Make one measurable change, then retest the same page and interaction on comparable settings.
  4. Publish after checking that the improvements preserve the site's content and keyboard behavior.

Common mistakes

  • Preloading every resource instead of the one needed sooner.
  • Reading only a Lighthouse number without checking the timeline or real behavior.
  • Compressing images so heavily that meaningful diagrams or screenshots become unreadable.

Frequently asked questions

Does static hosting guarantee a fast site? No. It removes the need to generate each response at request time, but browser work and asset size still matter.

Should I lazy-load all images? Usually no. A first-screen image may need early loading; below-the-fold images are the typical candidates.

How do I detect a layout shift? Record a load and inspect the browser performance timeline. Test fonts, images, and dynamically inserted elements.

Do I need to track a production metric? Field measurements help when traffic is sufficient. For a new site, a repeatable lab test is a useful start.

How do I compare two releases fairly? Keep the path, device, connection, cache state and actions the same, then compare several runs rather than one score.

Conclusion

Improve what readers actually wait for. Use the static SEO checklist for complementary launch checks, Knight LTD’s image tools to prepare images, and web.dev on Web Vitals for metric definitions.

Related reading