Why us?

Behind every great website is a
great team
.

We have built 150+ websites for marketers and global brands.

Services
Technologies
About us

Why us?

Behind every great website is a
great team
.

We have built 150+ websites for marketers and global brands.

Astro and Next.js logos on matching rose-glass browser windows.

Blog

Astro vs. Next.js for a B2B marketing website: our landing-page test

We built the same landing page in Astro and Next.js and measured JavaScript, mobile paint and build time. Explore the results and download the test projects.

Our Astro landing page sent 67.6 KiB of compressed JavaScript. The Next.js version sent 130.4 KiB. Both rendered the same headline, ran the same React calculator and accepted the same test form. For a marketing page with one interactive feature, Astro gave us the smaller download. A team sharing routing, components and engineering support with a Next.js product has other reasons to choose Next.js.

We wanted an answer more specific than “both frameworks can be fast.” In our review of 200 readable Slush company homepages, Next.js appeared on 56 and Astro on 16. Those counts show adoption. To compare the cost of one implementation decision, we built a small page twice. See the Slush website study.

What did we build?

Each static build produced three routes: a campaign page, a preview page with a draft headline and a form confirmation. Both used the same copy, CSS, local JSON content and interactive React component. The calculator multiplied markets by six to estimate the number of localized pages. The browser test changed the input, checked the result, submitted a synthetic email and confirmed the preview headline.

Astro 7.4.13 loaded the calculator as a React island with client:load. Next.js 16.4.6 used the App Router, a Client Component for the calculator and a static export built with webpack. Both used React 19.3.1. The form submitted to a local confirmation page. No CRM, analytics, consent manager, remote fonts or images were included. Astro islands and Next.js Server and Client Components.

How much did the browser download?

  • Compressed external JavaScript on the landing page was 67.6 KiB for Astro and 130.4 KiB for Next.js. Script sizes stayed constant across five visits per build.
  • Median Largest Contentful Paint was 184 ms for Astro and 248 ms for Next.js. The largest item was text. A homepage with a video or a large product screenshot can behave very differently.
  • Median production build time across three runs was 0.82 seconds for Astro and 6.75 seconds for Next.js, with build output and framework caches cleared between runs.

We used a local gzip server, Chrome 157, a 390 × 844 mobile viewport, fourfold CPU throttling, an 80 ms latency setting and a 200,000-byte-per-second download setting. Each visit used a fresh browser context. The JavaScript figure counts encoded external script bodies. HTML, inline data and response headers are outside that figure. Treat these timings as a reproducible lab observation. Real users bring different devices, networks and third-party scripts. Download the test projects, measurements and reproduction notes.

What should a marketing team test before choosing?

Our preview route used a local content file. A hosted CMS adds draft permissions, webhook delivery and cache invalidation, so the build timings alone cannot tell you how long an editor will wait. Give an editor on each proposed setup the same task: change a headline, preview the draft on a phone, request approval, publish it and roll it back. Time the whole task and note where a developer has to help.

Choose Astro when the site is mostly published content with isolated interactive features and the team can maintain the CMS integration. Shortlist Next.js when the marketing site shares substantial application behavior with a React product. In either case, repeat the comparison with your heaviest real page and your actual editor. Compare the wider B2B website stack.

Share this article

Let's work together!

Get a free consultation with our experts

Picture of Tomáš Jendek

Tomáš Jendek

I'm Tomas, co-founder of Webgate — a WordPress & Elementor studio in Bratislava. We work with global B2B SaaS and tech companies, building websites as long-term marketing assets rather than one-off projects. I write about the unglamorous parts of running an agency: WordPress at scale, Elementor in production, client delivery, positioning, and the operational decisions. Opinions are sharpened by ten-plus years of shipping for clients with real deadlines. Read my account of using AI agents on a production Elementor website: Webgate’s MCP workflow, published on Elementor’s blog. Find me on LinkedIn and at jendek.com.

Co-founder • Website & Growth Strategist

Table of Contents

Subscribe to our quarterly newsletter and receive latest insights.

Topics: Improving B2B websites, AI tools in web development, UX/UI, website marketing trends etc.

By submitting this form you agree to the processing of your personal data according to our .

Contact

Let's work together!

Get a free consulting call with our experts

Book a call with
Webgate founders

Thank you for your interest!

We will contact you soon.