All articles
PerformanceMay 12, 2026·Updated Nov 10, 2026·4 min read

Your marketing site doesn't need to be a SPA. It needs to load.

A marketing site has one job in its first second: show the visitor something useful. When every page is built in the browser by JavaScript, that second is spent downloading and running code instead. There are straightforward ways to fix this, including for sites already built with React.

K
Brainofire Team
Web & Mobile Architect
Your marketing site doesn't need to be a SPA. It needs to load.

In a purely client-rendered single-page app (SPA), the server sends an almost empty HTML file. The browser downloads the JavaScript, runs it, and only then builds the page. For a logged-in product that people keep open all day, that trade-off is often fine. On a marketing page, most visitors arrive once, from search or an advert, and decide quickly whether to stay.

A product app needs to be fast once it has loaded. A marketing site needs to be fast while it is loading. They are different problems, and one approach rarely suits both.

  • HTML that contains the real content before any JavaScript runs
  • Images sized for the device, not the original upload
  • Only the JavaScript that the interactive parts actually need
  • Caching through a CDN, so traffic spikes do not slow the site down
  • A way for non-developers to edit content without a redeploy

Notice what is not on the list: client-side routing, complex state management or hydrating every paragraph of text.

Static site generation. Pages are built into HTML files at build time and served from a CDN. Astro, or Next.js with a static export, generates an HTML file for each route and loads JavaScript only for the interactive parts.

Server rendering. Pages are rendered on the server for each request, or cached after the first one. In Next.js, Server Components render on the server and reduce the amount of JavaScript sent to the browser. This suits pages whose content changes often or depends on the request.

Build-time prerendering for an existing SPA. If your site is already a React SPA, you do not have to rebuild it. A prerendering step loads each public route during the build and saves the resulting HTML, so visitors and search engines receive real content straight away while the app takes over in the browser. Brainofire's own website is built with React and works this way.

So a SPA is not automatically bad for SEO or speed. What matters is whether the first response contains the content, and how much JavaScript stands between the visitor and a usable page.

Images are often the largest files on a page. Serve them through an image optimisation service or your framework's image component, in modern formats such as WebP or AVIF, with a srcset so the browser can choose the right size.

Fonts need care too. Google Fonts is added with a stylesheet link to fonts.googleapis.com, and that stylesheet then points the browser to the font files. It is convenient, but it adds requests to other domains before text can use the font. Self-hosting a subset of the font files, preloading the most important one and setting a font-display value gives you more control over when text appears. If you keep Google Fonts, add display=swap to the stylesheet URL and preconnect to its domains.

Before and after any change, measure the same pages under the same conditions:

  • JavaScript before the first render: how much script the browser must download and run before content appears.
  • Largest Contentful Paint (LCP): when the main content appears. Google's guidance is to aim for 2.5 seconds or less.
  • Interaction to Next Paint (INP) and layout shift: whether the page responds quickly and stays stable while loading.
  • Conversions: sign-ups, enquiries or demo requests from the changed pages, compared over equal periods.

Use lab tools such as Lighthouse for quick comparisons, and real-user data, such as the Core Web Vitals report in Google Search Console, to confirm them. Conversion rates move for many reasons, so compare like with like and avoid drawing conclusions from a single week.

If the page is the product, such as a live editor, a real-time map or an interactive configurator with a lot of client-side state, a client-rendered app can be the right choice. Even then, consider prerendering the surrounding marketing pages.

Choose the rendering approach that suits the page, not the team's habit. Make sure public pages arrive as HTML, keep JavaScript for the parts that need it, and measure the result. For a framework comparison, see Next.js vs React for SEO, or ask our web development team to review your site.

Send us a brief. We'll come back with a project quote and a realistic delivery plan.

Get a Quote