Blog / AI

My phone site was glitchy, so I tested it and fixed it.

My website was glitchy on my phone. So I tested it, found the problems, and fixed them. Here's what I found.

The home page was slow

I ran Lighthouse, which is a free speed test from Google. My home page scored 45 out of 100.

The problem was the photo on top. It reacts to your finger or mouse, and it kept redrawing itself over and over, even when nothing was moving. In the test, that one script used about 5.6 seconds of work.

Now it stops redrawing when nothing is moving. The score went from 45 to 100.

My phone was doing extra work

A few effects look nice on a computer but make a phone stutter. I turned them off on phones:

  • A very faint grain layer over the whole screen
  • A blur behind the top bar and the back-to-top button
  • A blending effect on the photo
  • Colour changes on photos while you scroll

You can't really see the difference. You can feel it when you scroll.

The text touched the edge of the screen

On every page with a big title, the title and the first paragraph sat right against the left edge. The content under them had space. They didn't. It was one line of code that set the side padding to zero, and it had been there the whole time.

I also made the line spacing even across the whole site. Body text was a bit tight, and the small grey text had almost no spacing at all.

The map was stealing my scroll

On my restaurants page, dragging one finger over the map moved the map instead of the page. It felt like the page was stuck. Now one finger scrolls the page, and you pinch with two fingers to zoom the map.

My favicon was wrong

The little icon in the browser tab was an old 16 pixel one from my old website. My host answered the favicon address itself, so my new icon never showed. I moved the new icons to different addresses.

How I found all this

I used Claude Code to test the site and read the code. I didn't spot most of this by looking. A tool had to measure it.

If something on my site still looks off on your phone, tell me. I'd rather fix it.

Drafted and created with the help of AI.

Build log

Want the next one by email?

I send it myself. Unsubscribe whenever you want.