Re:The 512KB Club
by marginalia_nu on Saturday January 29, 2022 @10:09AM
(#30126860)
CloudFlare's supposed acceleration has been a bit underwhelming.
I was diagnosing some problems with latencies and it turns out that CF adds a good 200 ms to my page loads (making them load at about 400ms instead of 200ms*), meanwhile, their own tests claim they're able to reduce my page loads down to a roaring 700 ms from the 1 second default.
* depending on location
Re:The 512KB Club
by hankchinaski on Saturday January 29, 2022 @10:50AM
(#30127240)
Couldn't see much difference in UX from using CF rocket loader and also instant.page js plugin so I will probably get rid of those too
Your TTFB is pretty darn high for some reason, maybe a server side caching issue? Loading should be effectively instant otherwise, good job getting all critical assets inlined.
You could also mark the company images as `loading="lazy"` – though you may intentionally be eagerly loading all of those now.
Re:The 512KB Club
by hankchinaski on Saturday January 29, 2022 @12:29PM
(#30128280)
yes the TTFB is probably because my application logic and database queries are not optimised at all. I guess that is my next step, I have to do some profiling to figure out why. Probably just slow db query/slow database
[0] https://golang.cafe
[1] https://gtmetrix.com/reports/golang.cafe/7PvRciZS/
edit: 215kb after removing unnecessary js third-parties (instant.page and CF rocket loader) https://gtmetrix.com/reports/golang.cafe/Xey7C7LM/
ps: also the site is not a static site, it connects to postgresql and serves 2,000 requests daily on avg