Performance improvements 👀
Classic lazydev Google PageSpeed: “Inline critical CSS” Me: inline ALL CSS, it’s only 5kb 🤷
Code with Hugo now has a 100 PageSpeed score https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fcodewithhugo.com at the cost of inlining all the CSS 👀
There’s no new post this week since I managed to injure my knee at an international fencing (🤺) tournament.
A bit of a throwback to an earlier post/website improvement (see Record analytics events with a Zeit “micro” + SQLite3 Node.js application), I’ve written a small client script that shows me what events are being recorded on the site.
Here they are (since they started being recorded).
┌────────────────────────────────┬───────┬────────────┐ │ (index) │ value │ percentage │ ├────────────────────────────────┼───────┼────────────┤ │ total │ 1651 │ '100' │ │ overlay_close │ 1500 │ '90.85' │ │ newsletter_cta │ 137 │ '8.30' │ │ newsletter_form │ 5 │ '0.30' │ │ newsletter_ad │ 4 │ '0.24' │ │ sequelize_cheatsheet_cta │ 3 │ '0.18' │ │ home_ad │ 2 │ '0.12' │ └────────────────────────────────┴───────┴────────────┘
As expected, top event is
overlay_close, followed by
Jest Full and Partial Mock/Spy of CommonJS and ES6 Module Imports: The example repository is available at github.com/HugoDF/mock-spy-module-import.
How to run Jest tests sequentially: By default Jest runs tests in parallel with a “a worker pool of child processes that run tests” (Jest CLI docs).
Record analytics events with a Zeit “micro” + SQLite3 Node.js application: In order to finally switch off Google Analytics, I need to replace my goal conversion tracking somehow.
How I side project.ink: … but then, I got busy, a few weeks passed, and it took a while for me to get back to it. On the upside, I have a new place for my ramblings now, which is dotink.co. It’s meant to be a more technical blog for when I want to talk more about software and design, but we’ll see how things go.
The Myth of Consumer-Grade Security - Schneier on Security: The Department of Justice wants access to encrypted consumer devices but promises not to infiltrate business products or affect critical infrastructure. Yet that’s not possible, because there is no longer any difference between those categories of devices.
Architecting Kubernetes clusters — choosing a worker node size by learnk8s: Today’s answers are curated by Daniel Weibel. Daniel is a software engineer and instructor at Learnk8s. When you create a Kubernetes cluster, one of the first questions that pops up is: “what type of worker nodes should I use, and how many of them?”.