Other articles

  1. Make JS code communicate with a ServiceWorker

    If you need to send data from your JS code to your ServiceWorker, you can do it like this:

    navigator.serviceWorker.register("./sw.js").then(registration => {
        registration.active.postMessage("Some message");

    You can then rely on this code in the ServiceWorker to read the message:

    self.addEventListener("message", event => {
        console …
    read more
  2. JavaScript fatigue

    Today, I'd like to dig into something that has been bothering me lately: why I often feel tired of JavaScript (and even sometimes programming in general). I'm not alone in this, there's even a name for this JavaScript fatigue. Here I'll give my personal thoughts on this (and probably rant …

    read more

Page 1 / 13 »