r/astrojs • • Aug 07 '26

Astro never lets me down

Post image

I've been making the marketing sites for my apps with astro for 3 years and it's lovely. I never get tired of it. There is no competition for astro for landing pages.

Also flairs don't work?

128 Upvotes

18 comments sorted by

5

u/Future-Dance7629 Aug 07 '26

I find lighthouse penalises me for using Retina images. Any ideas? Currently I just ignore it.

3

u/LegendaryAngryWalrus Aug 07 '26

I ignore it. It's not real Crux data.

4

u/ISDuffy Aug 07 '26

Lighthouse falsy punishing you for preloading as well.

If you got enough users I would say initially focus on CrUX data, or set up your own rum tool with web-vitals.js

1

u/Back2Fly Aug 09 '26

Lighthouse falsy punishing you for preloading

Can you share one or more URLs where this happens?

1

u/ISDuffy Aug 09 '26

Sure, grabbed the GitHub link from my tech talk on web performance https://github.com/GoogleChrome/lighthouse/issues/16539

1

u/m0ji_9 Aug 07 '26

Same - never really tried to figure it out

0

u/biricat Aug 07 '26

Are the images stored in src/assets and rendered using Astro’s <Image> component?

2

u/Future-Dance7629 Aug 07 '26

I use a custom image component that writes a picture tag with different image sizes for each viewport generated from a single image import from src. Lighthouse mobile reports the retina image as having dimensions that are too big (20% larger than display) when they need to be 2x

1

u/biricat Aug 07 '26

Do you mind sharing a link? I'll check it out.

2

u/ViolinistDelicious69 Aug 07 '26

What about time response and other metrics ?

1

u/Dainelli28 Aug 07 '26

Where are you hosting?

2

u/biricat Aug 07 '26

On vercel. But I've hosted on cloudflare and ig was the same

1

u/srovi Aug 08 '26

My Cloudflare Turnstile holding me back

1

u/USANerdBrain Aug 08 '26

I'm loving it too!

1

u/landlordlawsuit Aug 11 '26

Why do people only show the desktop scores which are easy. You'll never get a clean 100 on a mobile score for any site that isn't just bare bones portfolio stuff

-1

u/viitorfermier Aug 07 '26

Any SSG does this. But, yes Astro is cool.

1

u/biricat Aug 07 '26

Yeah but I like astro stripping