Skip to content
Piyush Dankhra
Go back

How I achieved a perfect 100 Website Speed Score by migrating my blog to Astro

Last updated:

I recently migrated my blog website from Gatsby v2 to the Astro framework, and I’m thrilled to share that the average desktop PageSpeed Insights score is now 100!

You can see the report here: PageSpeed score

Table of contents

Open Table of contents

Why I migrated from Gatsby to Astro

While Gatsby is powerful, my blog was built using gatsby-theme-blog and plugins like:

It also had some missing features like pagination, blog tags, and better code snippet support, which I had implemented with custom code.

Astro offered several advantages:

This made Astro the perfect fit for my blog’s needs while keeping it highly performant.

How I achieved 100 PageSpeed score

Some key steps that made the difference:

  1. Minimal JavaScript
  1. Optimized Images
  1. Pre-rendered Pages
  1. Tailwind CSS with Purge
  1. Third-Party Scripts in Isolation
  1. Extended Features

How this relates to any stores

Achieving high PageSpeed scores is not only for blogs. In any store, performance directly impacts:

My experience migrating a real-world site to Astro while achieving a perfect PageSpeed score reflects my ability to:

To learn more about performance optimization strategies I implement in Magento/Hyvä projects, feel free to connect.

Final thoughts

Migrating from Gatsby to Astro for a content-driven site:

This demonstrates that careful framework choices and optimization strategies can make a huge difference.


Share this post on:

Next Post
How to create a Hyvä child theme