Astro developer in Nottingham

Astro for businesses in Nottingham, delivered remotely by one developer.

Astro developer

Migrate from WordPress to Astro in Nottingham

Many businesses in Nottingham run WordPress but face performance ceilings, security overhead, and rising hosting costs. Astro solves these with static HTML output, zero JavaScript by default, and edge deployment. I migrate existing WordPress sites to Astro with full SEO preservation, URL mapping, and 301 redirects.

  • PageSpeed 95-100

    Static HTML with zero JavaScript. Faster than any WordPress solution.

  • SEO-safe migration

    URL mapping, 301 redirects, Google rankings preserved.

  • Cloudflare Pages hosting

    Global CDN, free SSL, instant deployments. Hosting costs near zero.

A static site starts with an advantage, and the Core Web Vitals are how you find out whether it keeps that advantage once real content, fonts, images and scripts arrive. I am Mariusz Szatkowski, a developer in Gdynia who builds Astro sites remotely and in writing. The layout is mine to design, or I implement yours. This page uses the definitions from web.dev as the yardstick and the Astro documentation as the list of tools.

Canal-side buildings at Castle Wharf in Nottingham

Castle Wharf beside the canal in Nottingham. Photograph by Kenny Howse under CC BY-SA 2.0, via Wikimedia Commons.

#What are the Core Web Vitals thresholds?

The web.dev article “Web Vitals” defines the Core Web Vitals as the subset of Web Vitals that apply to all web pages, should be measured by all site owners and are surfaced across Google’s tools. The current set covers loading, interactivity and visual stability:

MetricWhat it measuresGood threshold
Largest Contentful Paint (LCP)loadingwithin 2.5 seconds of when the page first starts loading
Interaction to Next Paint (INP)interactivity200 milliseconds or less
Cumulative Layout Shift (CLS)visual stability0.1 or less

web.dev recommends measuring at the 75th percentile of page loads, segmented across mobile and desktop. A page passes when it meets the target at the 75th percentile for all three metrics. One slow outlier does not fail a page, and one metric that is good does not pass it.

The set changes over time. INP became a stable Core Web Vital in 2024 and replaced First Input Delay, according to the same article, which also says stable metrics will not change more than once per year. A site built to today’s three thresholds should still read the article again before each major release.

#How do you measure them?

web.dev separates field data from lab data, and the difference matters for a project plan.

Field data comes from real visits. The Chrome User Experience Report collects anonymised real-user measurements for each Core Web Vital and powers Chrome DevTools, PageSpeed Insights and the Core Web Vitals report in Search Console. web.dev notes that this data does not give per-pageview detail, so it strongly recommends setting up your own real-user monitoring. Its example uses the small web-vitals library:

import { onCLS, onINP, onLCP } from 'web-vitals';

function sendToAnalytics(metric) {
  const body = JSON.stringify(metric);
  (navigator.sendBeacon && navigator.sendBeacon('/analytics', body)) ||
    fetch('/analytics', { body, method: 'POST', keepalive: true });
}

onCLS(sendToAnalytics);
onINP(sendToAnalytics);
onLCP(sendToAnalytics);

Lab data comes from tools that load a page in a controlled environment: Chrome DevTools and Lighthouse. They are the right place to test a branch before it ships. Lighthouse cannot measure INP, because a simulated load has no user input. web.dev points to Total Blocking Time as the lab proxy, and says improvements to it may improve INP in the field. The article is clear that lab measurement is not a substitute for field measurement, since devices, networks and interaction patterns vary.

For a small business site the routine is short. Read the field data that already exists in Search Console. Run lab checks on each change. Add real-user monitoring if traffic is high enough to produce useful percentiles.

#Why does a static Astro site start ahead?

The Astro documentation describes islands architecture as rendering most of a page to fast, static HTML, with smaller islands of JavaScript added where interactivity is needed. By default Astro renders every UI component to HTML and CSS and strips out client-side JavaScript automatically. A framework component only ships JavaScript when it carries a client:* directive.

That default maps onto two of the three metrics. Less JavaScript on the main thread leaves less work competing with the first render and with later interactions. The documentation adds that islands load in parallel and hydrate in isolation, so a heavy widget lower on the page does not block a header that must respond at once.

The directive decides when the cost is paid. The documentation names client:idle, which loads a component when the browser becomes idle, and client:visible, which loads it once it enters the viewport. If the visitor never scrolls to it, it never loads.

<!-- ReviewCarousel is a framework component imported in the page frontmatter -->
<section>
  <h2>What visitors say</h2>
  <ReviewCarousel client:visible />
</section>

#How does Astro handle images and Largest Contentful Paint?

On many marketing pages the largest element is an image. The Astro images guide recommends keeping local images in src/, so that Astro can transform, optimise and bundle them. Files in public/ are copied into the build as they are, with no processing, and responsive images are not supported for them. That one rule decides whether the optimisation tools do anything.

The <Image /> component also addresses layout stability. The documentation says it infers width and height from the original aspect ratio to avoid Cumulative Layout Shift, and that the resulting tag includes alt, loading and decoding attributes. When a layout is set on the component or configured globally with image.layout, Astro generates srcset and sizes values so different screens receive different sizes.

For the hero image there is a further option. The priority property, added in Astro 5.10.0 according to the reference, sets loading="eager", decoding="sync" and fetchpriority="high", intended for above-the-fold images.

<!-- Image comes from astro:assets and hero from src/assets, both imported in the frontmatter -->
<Image src={hero} alt="Front of the workshop on a weekday morning" priority />

Setting priority on every image defeats it. It belongs on the one image that is the likely LCP element, and it only works when that element is an image Astro processes. A heading, a text block or a video poster that is the largest element needs a different fix.

#What helps INP and CLS besides images?

INP observes the latency of all interactions a user makes with the page and reports a single value that all, or nearly all, interactions were beneath. The web.dev article on INP notes that Chrome usage data shows 90 percent of a user’s time on a page is spent after it loads, so responsiveness has to hold throughout the visit and not only at load.

Two habits follow from the Astro model. Keep islands small and give each the cheapest directive that works. Do not turn a section into an island because a library suggested it. A mobile menu, a filter list or a form with live validation is a good island. A paragraph with a heading is not.

For layout stability, the rules that apply to any site apply here as well. Reserve space for images, embeds and consent banners. Load fonts in a way that does not move text after the first paint. The Astro <Image /> component covers the first of these for local images. The rest is design and testing.

#What does prefetching add?

The Astro prefetch guide describes opt-in prefetching that brings near-instant page navigations to a multi-page site as visitors interact with it. It is enabled in the config, and links opt in with the data-astro-prefetch attribute.

// astro.config.mjs
import { defineConfig } from 'astro/config';

export default defineConfig({
  prefetch: true,
});

The guide lists four strategies: hover (the default), tap, viewport and load. It says that if a visitor uses data saver mode or has a slow connection, prefetch falls back to tap, and that quickly hovering or scrolling over links does not trigger it. Prefetching works for links within the site and not for external links.

Prefetching does not belong to the three Core Web Vitals, which describe a single page load. It improves the next click. I treat it as a navigation feature, test it on a real mobile connection and leave prefetchAll off unless the site is small enough that bandwidth is not a concern.

#What can still break a fast Astro site?

Astro removes one source of slowness. It does not remove the others, and measurement is how they show up:

  • third-party scripts for chat, analytics or tag managers added to the layout
  • images placed in public/ where no optimisation runs
  • an island with a heavy dependency loaded with client:load on every page
  • a very large hero image whose size is not matched to the viewport
  • a consent banner or embed that appears late and pushes content down
  • a font that swaps visibly after the first paint

None of these is an Astro defect. All of them can fail a threshold, and a green lab score on a fast laptop does not show them. The field data in Search Console does.

#Which numbers do I check before launch?

A short routine before a Nottingham site goes live:

  • Run lab tests on the home page, one content page and one form page, on mobile settings.
  • Note LCP, CLS and Total Blocking Time for each, and which element is the LCP element.
  • Confirm that the LCP image, if there is one, is processed by Astro and carries priority.
  • Check that every island has a directive and that no island loads on pages where it is not used.
  • Confirm that prefetch is on only where it was intended.
  • Add the web-vitals snippet or another real-user monitoring if there is an endpoint to receive it.
  • Plan a re-check after launch, once Search Console has collected field data.

The thresholds are targets for the 75th percentile, so a first lab pass is a rehearsal and not a verdict.

#How does a project run?

  1. You send the current site address, the pages that matter most and the devices your visitors use. My first written questions about the LCP candidates arrive within 24 hours on working days.
  2. I write down the scope and my assumptions, including which pages get which kind of island and which image is the LCP candidate.
  3. I build on a staging copy and run lab checks per change, and you review the pages on your own phone.
  4. I deploy when you have approved the lab results in writing. A maintenance plan is an option when the site has a WordPress backend that needs updates behind the Astro front end.

I need the current site address, access to hosting or the repository and, for a redesign, the content and brand assets you want kept. My offer for Astro projects overall is on the Astro developer page, and moving an existing site is covered in the migration guide.

#Send me the pages that feel slow

If your Nottingham site loads slowly on a phone, send the address, the three pages that matter most and the devices your customers use through the contact form. The first written estimate for the Astro build is free, and it names the LCP candidate and the islands I expect on each page. I check the thresholds against web.dev and the field data you have before I promise any target.

Need this service: Astro developer in Nottingham?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Explore other WordPress services and knowledge base