Hacker News new | ask | show | jobs
by cotillion 1815 days ago
Its a static site (Gatsby) hosted on Amazon CloudFront. Almost everything is inlined.
2 comments

Do you have any explanation why it gets such a horrible Page Speed score on Google?

https://developers.google.com/speed/pagespeed/insights/?hl=s...

A few resources are slow to load
I'm seeing many json calls that return the content showed in the page.
It's json yes but not an api. They are serving json blobs from their cdn which are prefetched.

It's a good site, but nothing particularly clever going on.

JSON pre-fetched from a CDN sounds decently clever to me? If it’s making their website fast, that’s what matters.
Yes, I think the point of saying "nothing clever going on" is to indicate that everyone can and should be doing this. It doesn't take some kind of Steve Wozniak to accomplish.
I believe there is a healthy amount of cleverness available between “Nothing clever” and “Wozniak clever”, and I find it hard to agree with you.
Sure, but this doesn't really do any of that. If you just ship an inlined static site it will be this fast. You don't need any real "technologies" to do this. You just need leadership who will push back on the marketers/PMs who want to ship an entire petting zoo of third-party analytics trackers and A/B plugins.
It’s good, it’s not particularly clever but as another comment says, that doesn’t really matter. Everyone should be doing this. It doesn’t have to be json payloads. We do the same with lazy loaded react components which are served directly from our cdn as needed. Probably not quite as efficient given react overhead but the effect is similar.
If it's working well, does it have to be clever?