News for hackers. Stuff that matters.
Re:Optimizing a Static Site by sbinthree on Saturday March 17, 2018 @03:49PM (#16608730)
Agreed. I tried taking this to the extreme with my personal site. It's down to ~30ms on free Netlify for first and subsequent loads, always <10kb including content, with one HTTPS request per page load. No external dependencies, reasonably readable, 100% passing in Lighthouse. The highest leverage things are usually to delete anything font related, reduce or remove media and GZIP/minify. More obscure approaches include base64ing a fake favicon to get rid of the extra call, eliminate media, eliminate all requests but the core HTML static resource, inline everything, move to a faster host with lots of CDN edges, test aggressively with slow connections and eliminate until <100ms. Mostly because it's fun, also useful though if you serve a user base in developing world.
Re:Optimizing a Static Site by davewasthere on Saturday March 17, 2018 @08:03PM (#16609772)
I also moved to netlify (from a gh-pages/cloudflare setup). And while I'm a huge fan, and loved the process, I am interested that google crawler seems to have found it a lot slower.

https://i.imgur.com/RUssvAA.png

I've SSL enabled (as well as HSTS) And yes, the initial redirect seems to take a while. But equally the very first page request from a site is actually quite slow I feel. Considering it's a static page of less than 4kB, I'd expect it to be a bit snappier...

I've other reasons for trying netlify, and I'm not too bothered about the slowdown (my site has bugger all traffic tbh), but I would like to get to the bottom of it.

Re:Optimizing a Static Site by Klover on Saturday March 17, 2018 @04:25PM (#16608889)
Could you link your personal site if it's not too personal?