RSSAmplifier

Blog

All About the Code

Personal tech blog of Knut Haugen

localhostRSS feed ↗10 posts

Latest posts

The Web Speech API

API Overview

The Case for pnpm

If you’re one of those unlucky souls that need permission or backing to choose something else than npm as your JavaScript package management tool, this article is for you. My previous post was on how to try to deal with a huge dependency tree in these uncertain times. And it occurs to me that many (not all) of those problems are made much smaller by just switching to pnpm . So here are some…

Living With Deep Dependency Structures

At the time of writing this, we are in the aftermath of Shai-hulud 2.0 1 , which came on the back of the two first rounds of attacks from the first version of Shai-hulud 2 3 . Supply chain attacks is nothing new under the sun, and the JavaScript ecosystem is by no means the only one vulnerable to these kinds of attacks. But we do have some special circumstances that make life as JavaScript…

Devtools: Throttling Individual Requests

This just in! The Chrome team just dropped a very exciting new feature, and that is the ability throttle individual requests (or individual request domains). The feature is just available in Chrome Canary (nightly builds) so far, but should make its way to prime time browsers soon enough.

Web Vitals Live Measurements

Web Vitals events (normal mode)

Network Information API Test

This page/post tracks and prints every time the network information API detects a change in your devices network. Most useful on mobile devices when travelling through areas of spotty wireless coverage.

Talk slides: Browser performance from JavaZone

This is slides and (link to references for) a talk I gave at JavaZone 2025. Talk and slides are in Norwegian, but all sources are in English.

Talk Notes: Web Performance Deep Dive

I gave a talk on web performance and web performance APIs on May 22th 2025 on a mini conference for developers and platform engineers in the public sector in Norway. This is just a quick post linking the talk slides, as PDF, and references and sources for the talk, for anyone interested. Talk and slides are in Norwegian, but all sources are in English.

Tracking Web Vitals on the Cheap

In my post on the Speculation Rules API I talked briefly about Web Vitals and I want to dig deeper into the how and why of Web Vitals and give an example of how you can track them over time for your own site. First, a quick introduction to Web Vitals, for some context.

It's Time to Speculate

After my colleague Ingvild made me aware of the Speculation Rules API I got really interested in learning more about it, testing it out and see how it feels to use in actual code. The ability to specify rules about how and when to prefetch or even prerender future navigations on a website or in an app is very powerful. But as always, with great power comes great responsibility .