Disqus integration and font self-hosting
Jul 21, 2019
The website functions, but its evolution will never stop.
I mentioned the Google font problem in my previous blog post. I dug deeper and it turned out that the best way is to self-host the fonts (see Reference 1 and Reference 2). The good news is that for downloading, there’s a nice tool written by Mario Ranftl that is a great help: google-webfonts-helper.
The other recent change is the integration of Disqus. I tried to apply preload, but had to give up on that because the browser issued warnings and the crossorigin tag was causing trouble as well.
New test runs regarding the site:
- Official Lighthouse: 99 / 97 / 85 / 100
- webpagetest.org Lighthouse: 95 / 97 / 93 / 100
- webhint.io scanner: 68 hints. Many of these are Netlify hosting quirks, which are out of my control (unless I change hosts).
TODO:
- Image optimization: Cloudinary is a good starting point. I’m afraid I won’t use WebP, because Safari doesn’t seem to support it yet.
- Ditch jQuery + Bootstrap and migrate to MDL (Material Design Lite).
- Cut JS and SCSS fluff from the get-go, and use post-processing to remove unused CSS/JS.
- Headless CMS: headlesscms.org. I’m exploring Google Spreadsheets / Docs as a possible headless CMS, especially since I’ll later use my experience to migrate the gdgfresno.com website from Squarespace.