Skip to content

~/services/sites/website-speed-optimization

Website speed optimization: Core Web Vitals, images, fonts and scripts fixed in code

For anyone whose site takes too long to open, jumps around while loading or freezes on tap. I measure, find what weighs it down and fix it in the code, with before and after numbers.

6 min read

AYA Energia home page with an aerial photo of a solar plant and the headline about keeping the plant at peak output every day
Real screenshot from the AYA Energia Website case

What You Get

  • Measurement in production, on mobile, before touching anything
  • List of what slows the site down, ranked by impact
  • Images, fonts and scripts fixed in the code
  • Caching and compression configured on the server
  • Report with the before and after

Website speed optimization means making the page open fast on the phone of someone out on the street, not jump around while it loads, and respond right away to a tap. It sounds like a detail, but it is the first impression: whoever stares at a blank screen goes back to the search results and clicks a competitor. I'm a developer, so I don't just hand over a report with a score. I measure, find what weighs the page down and fix it in the code.

A browser-shaped race car in the pit stop, with heavy suitcases being taken out and a stopwatch beside it
Taking out the suitcases stands for removing page weight and measuring the effect on speed.

Why Speed Matters

A slow site loses people before it shows anything. The quote button takes a while to appear, the product photo shows up after the text, the menu ignores the first tap. Each of those bits of friction costs leads and sales, and you never find out, because people who give up don't leave a note.

Core Web Vitals, Without The Jargon

Google sums up the loading experience in three metrics, the Core Web Vitals:

  • LCP (largest contentful paint). How long it takes for the largest block on screen to appear, usually the hero photo or headline. It is the "did it open or not".
  • INP (interaction to next paint). How long the site takes to react when someone taps a button or opens the menu. A site choked by heavy scripts does badly here.
  • CLS (cumulative layout shift). How much the page jumps while loading. You know when you go to tap a link and it moves down because an image arrived? That's it.

Search Console shows these metrics with data from real visitors, and Lighthouse gives a lab score. I use both, always on mobile, which is where the problem shows up.

What Makes a Site Slow

It is almost always a mix of these:

  • Heavy images. Photos straight from the camera, multi-megabyte JPGs, served at the same size to a phone and a large monitor.
  • Video in the hero. Nice on a computer, a huge load on 4G.
  • Fonts that arrive late. Text shows up in one font, switches to another and the layout jumps.
  • Third-party scripts. Chat, ad pixels, maps, review widgets, all loading before the content.
  • Too much JavaScript. The whole page built in the browser when almost all of it could come ready-made from the server.
  • No caching. Visitors download everything again on every page.

What I Actually do

Images

I convert them to modern formats like WebP, generate several sizes and let the browser pick the right one for each screen. The main hero image is preloaded; the ones further down load only when the visitor scrolls.

A server sends ready-made HTML to a page; JavaScript powers its menu. Tag Manager, pixels and chat load after the page is ready.
Ready-made HTML for content, JavaScript for interaction, third parties after the page.

Fonts

I serve the font from the site itself, preloaded and with only the weights in use, so the headline doesn't change size when it arrives.

Third-party Scripts

Tag Manager, pixels and chat load after the page has finished. Often one of them isn't even used anymore, and it goes.

JavaScript

I send to the browser only what needs to be interactive. The rest ships as ready-made HTML.

Caching And Compression

Files with a version in their name get a long cache, the HTML always stays fresh, and everything is served compressed.

Two Cases Measured In Production

This site. The homepage scored 87 for performance in mobile Lighthouse. Three changes took it to 98: JavaScript now loads only for the interactive parts of the page, the WebGL visual effect runs only on desktop, and my hero photo is now preloaded.

Homepage mobile Lighthouse: 87 before and 98 after. Selective JavaScript, desktop-only WebGL and a preloaded hero photo.
Three changes took this site’s homepage from 87 to 98 in mobile Lighthouse.

AYA Energia website. The hero video got a lightweight mobile-only version, which cut about 3.8 MB from the page. Photos are served as WebP, the font is self-hosted and preloaded, Tag Manager loads only after the page, and the server compresses files and caches versioned ones for a year. Result measured in production in launch week: 99 for performance in desktop Lighthouse and 100 for accessibility, best practices and SEO.

How It Works

  1. Measurement. I run Lighthouse on the main pages, on mobile, and cross-check with Search Console field data when you have access.
  2. Diagnosis. A list of what slows the site down, with the expected gain and effort for each item. You decide what goes in.
  3. Fixes. On your current site, when the platform allows it. On a closed builder, part of the weight is out of anyone's reach, and then a website migration is worth considering.
  4. New measurement. Same test, same pages, so you see the before and after in numbers.

If the site hasn't been built yet, all of this goes in from the start, as I explain under website development.

Want to know why your site is slow? Send me the URL and I'll tell you where I would start.

Frequently Asked Questions

Does a faster site rank better on Google?

It helps, because page experience is one of the signals Google considers, but it doesn't guarantee rankings. The surest gain is with visitors: fewer people give up before they see the content.

Can a Wix or WordPress site be optimized?

With WordPress you can almost always gain a lot from images, caching and fewer plugins. With Wix, part of the weight comes from the platform itself and can't be changed. I measure first and tell you what is possible.

What is a good Lighthouse score?

Above 90 on mobile is a good target. More important than the score is passing Core Web Vitals with real visitor data, which shows up in Search Console.

How much does website speed optimization cost?

It depends on the size of the site, the platform and what the measurement shows. The price comes in the proposal, after I look at the site and talk with you.

Where This Is Already Live

Related Services

Next step

Didn't Find Your Case in the List?

Tell me about the problem through the form. If I'm not the right person, I'll say so and point you to someone who is.