DEV Community

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

Posted on

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 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/

Top comments (0)