Website tweaks
I have done some minor optimization of the website in order to improve its Lighthouse score and its performance.
The score should be above 90% in every category (except PWA that I don’t target) at the moment of publishing this post. I only tested it on localhost, but as the most significant problem was caused by Google Fonts the website depends on, that part should be the same as in production.
The changes are:
Alter Cayman Theme’s default
head.html
to have three CSS files mentioned there preload.
«Link types: preload» on MDN.<!-- Three times, once for each file: --> <link rel="preload" as="style" type="text/css" href="..."> <link rel="stylesheet" href="...">
Add
&display=swap
to the Google Fonts URL.
«font-display» on MDN.Change a link text in the first Parentheses devlog to not be
here
, but something more descriptive. Apparently, that matters for SEO.Add this paragrapoh about analytics:
This webiste uses analytics provided by Plausible.
They do not interfere, they do not collect personalized data. I don’t even have to include a privacy statement. Unfortunately, ad blockers still block them :’(
Well, not much I can and want to do with that.(And mention analytics in the footer 👇)
Update 2022-10-21
I disabled my analytics subscription a while ago as it was unwise to keep it. Today, I removed it from the website. I’ll keep the old text of the post here. It was an interesting experiment.