Dev.to WebDev 🛠 Dev 👁 0

How iSamuel Got a 100 PageSpeed Score on Astro — Fixing CLS, Ads, and Canonical URLs From My Phone

Got my Astro blog to a 100 Performance score on PageSpeed Insights — built entirely from my phone via GitHub's web editor, no local dev environment. What actually fixed it: A PWA nav script injecting layout shift after p

Got my Astro blog to a 100 Performance score on PageSpeed Insights — built entirely from my phone via GitHub's web editor, no local dev environment.
What actually fixed it:
A PWA nav script injecting layout shift after paint
AdSense ads pushing content around (fixed by reserving space)
Images missing width/height causing reflow
A canonical URL mismatch hurting indexing
CLS: 0.18 → 0.00 · LCP: 2.9s → 1.4s
Full writeup: https://www.revibyte.blog/posts/how-i-got-100-pagespeed-score-astro/

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.