Blog header
Thoughts On The Modern Web

How Out-Of-Order Streaming HTML Will Revolutionize The Web

calendar icon

Nov 30, 2026

Header for posting How Out-Of-Order Streaming HTML Will Revolutionize The Web

Did you ever wish you could serve some parts of your HTML earlier or later than others?

Read more >

When Users Are Reluctant To Install Your PWA

calendar icon

Nov 11, 2026

Header for posting When Users Are Reluctant To Install Your PWA

Let’s face it: most users are used to installing apps from app stores and not from the web. They’re not (yet) familiar with installable web apps and, more importantly, they sometimes don’t want to install web apps because they think they’re not secure.

Read more >

How To Fix All Your PWA Issues Once And For All

calendar icon

Nov 1, 2026

Header for posting How To Fix All Your PWA Issues Once And For All

Talk to developers about PWAs, and you’ll quickly hear about service worker hell: the notion that service workers are hard to control and impossible to understand.

Read more >

What We Need To Make Web Apps A Success

calendar icon

Oct 23, 2025

Header for posting What We Need To Make Web Apps A Success

Here’s a fun experiment: put your phone in flight mode so there’s no internet connection, and make sure it’s not connected to wifi either.

Now open your favorite web browser and open a random website, just any website you use regularly.

Read more >

The State Of Link Capturing in PWAs

calendar icon

Jul 23, 2025

Header for posting The State Of Link Capturing in PWAs

One of the best features of native apps is that they can capture links within their scope to enable deep linking.

For example, when I have the Instagram app installed on my phone and someone sends me a link to an Instagram post and I click it, it will open the Instagram app instead of a browser.

Read more >

What I Learned From Building View Transitions

calendar icon

Mar 9, 2025

Header for posting What I Learned From Building View Transitions

In the past couple of weeks, I recreated a number of demos from Nitish Khagwal and Leonel Ngoya that were built with React Motion to work with only view transitions.

You can find them online as codepens:

Read more >

Animations In Web Apps Have Never Been Easier

calendar icon

Feb 2, 2025

Header for posting Animations In Web Apps Have Never Been Easier

What’s the one thing that can instantly bring a dull web app to life?

Animations.

Read more >

Hide And Seek: How To Make Sense Of Page Events In Your Web App

calendar icon

Oct 28, 2024

Header for posting Hide And Seek: How To Make Sense Of Page Events In Your Web App

Do you know the difference between the pagehide, beforeunload and visibilitychange event?

If you don’t, I don’t blame you.

Read more >

Here’s What Your Web App Can Do Today

calendar icon

Oct 9, 2024

Header for posting Here’s What Your Web App Can Do Today

Are you a developer who believes that web apps are inferior to native apps? Do you think that web apps can’t do all the things native apps can?

Well, I don’t blame you.

Read more >

Offline Is Not An Error

calendar icon

Sep 30, 2024

Header for posting Offline Is Not An Error

Does your web app work offline? Does it work when you disconnect from the internet and start it up? Or does it show that useless white screen with a dinosaur that tells users they’re offline?

Chances are, your web app does the latter and while that’s what most web apps do, it’s a really bad user experience.

Read more >

If We Want PWAs To Be Taken Seriously, We Need To Take Them Seriously

calendar icon

Sep 15, 2024

Header for posting If We Want PWAs To Be Taken Seriously, We Need To Take Them Seriously

Did you know that X and Instagram have a PWA that works perfectly fine?

You can install it to your phone and it does exactly what the native app does, but you can install it straight from their website instead of an app store.

Read more >

Multi-Page App View Transitions Are Here!

calendar icon

Jul 9, 2024

Header for posting Multi-Page App View Transitions Are Here!

View Transitions for the same document, a single-page app, are currently supported in Chrome, Edge, and Safari but now Chrome 126 also adds support for cross-document View Transitions. This means you can now transition two static HTML pages hosted on the same domain.

This is a huge win for web apps as it makes implementing page transitions even simpler. Same-document View Transitions already made it much easier to implement page transitions in single-page apps but cross-document View Transitions take this to the next level.

Read more >

What Offline Support For Your Web App Really Means

calendar icon

Jun 5, 2024

Header for posting What Offline Support For Your Web App Really Means

The greatest misconception around offline support for web apps is that it means your app should provide the exact same user experience when the app is totally offline as when the app is online.

This is false.

Read more >

PWAs On iOS: Where We Are Now

calendar icon

Feb 26, 2024

Header for posting PWAs On iOS: Where We Are Now

The havoc Apple has wreaked upon Progressive Web Apps (PWA) by sabotaging them completely on iOS 17.4 has left developers worldwide frustrated and confused. Not only because it’s an incomprehensible turnaround after their recent improvements in PWA support, but also because the situation Apple left us with is even more puzzling.

In this article, I will attempt to clear up the confusion.

Read more >

A Future For The Mobile Web

calendar icon

Feb 20, 2024

Header for posting A Future For The Mobile Web

If anything, Apple’s recent decision to disable PWAs in the EU teaches us that we need web apps as a viable alternative to the app stores that keep native apps chained to high fees and arbitrary admission criteria.

Despite the fact that they have recently improved PWA support in their Safari browser drastically, Apple decided to pull the plug on an emerging industry, trusting it would only affect “a small number of users” given the “very low user adoption of [PWAs]”.

Read more >

PWAs Are Now Officially Dead On iOS In The EU

calendar icon

Feb 15, 2024

Header for posting PWAs Are Now Officially Dead On iOS In The EU

After a week of deafening silence, Apple finally responded to their decision to disable the installing of PWAs (Progressive Web Apps) in the beta versions of iOS 17.4.

I, and many others, hoped this would be a temporary situation as Apple is facing the March 6, 2024 deadline to comply with DMA regulations and probably hadn’t figured out a way to let third-party browsers install PWAs on iOS.

Read more >

Apple Wants To Kill PWAs

calendar icon

Feb 7, 2024

Header for posting Apple Wants To Kill PWAs

Just when you thought things couldn’t get any worse, Apple decided to disable PWAs (Progressive Web Apps) in the beta release of iOS 17.4. At first I thought this was a bug, something not uncommon for beta releases, but then I saw this tweet that show a popup that even indicates PWAs are disabled:

Really, Apple?

Read more >

Less Or No JavaScript with Invokers

calendar icon

Feb 5, 2024

Header for posting Less Or No JavaScript with Invokers

Invokers enable developers to assign behavior to buttons in a more declarative and accessible way. In plain English: less JavaScript and less bugs!

The basic idea is that you add an invoketarget attribute to a <button> that holds the id of the element that is the target of the invoked action:

Read more >

Your Web App Can Now Download Files In The Background

calendar icon

Nov 13, 2023

Header for posting Your Web App Can Now Download Files In The Background

When you download a large file in a web app, you have to keep it open until the download finishes. If you close it before finishing, you lose the file you were downloading and you have to start all over.

This is obviously not a great user experience, and this is exactly the problem that the Background Fetch API solves. It enables web apps to continue downloading in the background, even when the app is closed. When the app goes offline while downloads are running these will be paused and continued when the network is back. While downloading, progress is shown to the user, and running downloads can also be paused or cancelled.

Read more >

Background Sync Is A PWA Super Power - Part 2

calendar icon

Oct 24, 2023

Header for posting Background Sync Is A PWA Super Power - Part 2

In my previous article, I wrote about the Background Sync API that enables your web app to schedule tasks while offline and run them when the network is back.

Quite some readers asked me if it was possible to create some sort of “outbox” functionality, similar to the outbox of an email app: messages are stored when offline, and when the network is back the app loops through the saved messages and sends them. One issue that came up repeatedly was that some subscribers struggled to implement this with the online and offline events.

Read more >

A Better Install UI for PWAs

calendar icon

Oct 16, 2023

Header for posting A Better Install UI for PWAs

Installing a PWA (Progressive Web App) finally got a better user-experience in Chrome on desktop and Android recently.

Contrary to native apps, PWAs are installed from the web instead of a centralised repo like the Apple App Store or Google Playstore. Typically, the user-experience of installation differs between browsers and doesn’t offer much information by default.

Read more >

Background Sync Is A PWA Super Power

calendar icon

Oct 3, 2023

Header for posting Background Sync Is A PWA Super Power

The Background Sync API enables web apps to defer tasks when the user is offline and run these when the network is restored. For example, a messaging app could save messages that are sent while the user is offline to IndexedDB and then send them when the user is online again. This is a very powerful API that contributes to a great offline experience and makes a web app feel more like a native app.

There are a lot of confusing articles on the Background Sync API that, at least for me, don’t really explain well how to use it. The API seems a bit counter-intuitive at first, but once you understand how it works, it opens up a lot of interesting possibilities.

Read more >

View Transitions For Multi-Page Apps

calendar icon

Sep 25, 2023

Header for posting View Transitions For Multi-Page Apps

In my previous article, I wrote about View Transitions and how you can use this API to add app-like page transitions to your web apps.

View Transitions are already implemented in Chrome but only for single page apps. The spec for View Transitions in multi page apps (MPAs) is still under development but luckily, you can test it in Chrome Canary by setting some flags.

Read more >

Going Build-less With Import Maps

calendar icon

Aug 28, 2023

Header for posting Going Build-less With Import Maps

Does your web app need a build step? Does it really need a build step?

My project What PWA Can Do Today only needed a build step because I had to import dependencies using bare import specifiers. These specifiers don’t point to an imported module file but rather the name of the dependency you want to import.

Read more >

View Transitions: The Final Frontier For Web Apps?

calendar icon

Jul 16, 2023

Header for posting View Transitions: The Final Frontier For Web Apps?

One of the main differences between native apps and web apps is that native apps often have all kinds of fancy transitions between screens while web apps are stuck with abrupt page changes.

While browsers nowadays have a feature called “paint holding”, which keeps the old page visible while the new one loads, you may still experience a flickering white screen between page changes. You can of course create a single-page app and implement the page transitions yourself, but this is really hard and error-prone.

Read more >

How To Create Context Menus That Always Display Inside The Viewport Using Only CSS

calendar icon

Jun 28, 2023

Header for posting How To Create Context Menus That Always Display Inside The Viewport Using Only CSS

If you have ever tried to build an adaptive context menu you know how challenging this can be.

You need to display the menu next to an element, let’s say on the right of it. But if the element itself is close to the right edge of the screen the menu may be cut off so you need to display it on the left side. The same goes when you display it on any other side: there’s always the possibility that (part of) the menu is outside of the viewport when it’s displayed.

Read more >

How To Hydrate A Server-Side Rendered Web Component

calendar icon

May 10, 2023

Header for posting How To Hydrate A Server-Side Rendered Web Component

Declarative Shadow DOM enables us to attach a Shadow root to a Custom Element and fully render it without any JavaScript. This is a huge step for web components since they can now be rendered on the server. But there is a slight problem though.

Read more >

How To Server-Side Render A Web Component

calendar icon

Apr 27, 2023

Header for posting How To Server-Side Render A Web Component

Server-side rendering means the server sends a complete HTML document to the browser which then renders it. This is in contrast to client-side rendering where a partial HTML page is sent to the browser and then JavaScript renders the rest in the browser.

Read more >

How Web Apps Became Decoys To Get You To Install Native Apps

calendar icon

Nov 21, 2022

Header for posting How Web Apps Became Decoys To Get You To Install Native Apps

You know that popcorn price list at the cinema where the large bucket is only slightly more expensive than the medium size one?

That medium size is only a decoy to get you to buy the large one.

If you can get a large bucket for only 50 cents extra, why would you buy the medium one?

Read more >

The Hidden Power of Custom States For Web Components

calendar icon

Nov 15, 2022

Header for posting The Hidden Power of Custom States For Web Components

In my previous articles “Web Components Can Now Be Native Form Elements” and “Native Form Validation Of Web Components”, I wrote about the ElementInternals property that enables Custom Elements to be associated with a form.

This interface also enables developers to associate custom states with Custom Elements and style them based on these states.

Read more >

Native Form Validation Of Web Components

calendar icon

Sep 13, 2022

Header for posting Native Form Validation Of Web Components

In my previous article “Web Components Can Now Be Native Form Elements” I explained how the ElementInternals object can be used to make Web Components participate in forms just like any other native form element.

In this article I will explain how you can easily validate these custom form controls using nothing but the native platform

Read more >

Web Components Can Now Be Native Form Elements

calendar icon

Aug 9, 2022

Header for posting Web Components Can Now Be Native Form Elements

One area in which developers have always wanted to customize elements is forms.

Historically, it has often been hard to style form controls to give them the look and feel you want.

The styling options are often limited and to this day, form controls like date and color pickers are still inconsistent across browsers.

Read more >

Everything You Always Wanted To Know About Web Components (But Were Afraid To Ask)

calendar icon

Jul 21, 2022

Header for posting Everything You Always Wanted To Know About Web Components (But Were Afraid To Ask)

How well do you know Web Components? What would you like to know about Web Components?

Here are the answers to the most common questions I get asked frequently.

Read more >

Hidden gems inside your browser, hiding in plain sight.

calendar icon

Feb 1, 2022

Header for posting Hidden gems inside your browser, hiding in plain sight.

Your browser can do some pretty awesome things that you probably didn’t know about.

I work with browsers every day and I’m still amazed at some of the stuff I find. Sometimes, I discover features that I thought were only possible in native apps and it seems I’m not the only one, because many of these are hardly even used in websites!

Read more >

Smart Styling Of Web Components

calendar icon

Nov 16, 2020

Header for posting Smart Styling Of Web Components

One of the killer features of Web Components is true encapsulation of styling through Shadow DOM.

This means that the internal CSS of a Web Component can be completely isolated from the surrounding document without the need for a particular naming convention.

Read more >

Your Single-Page App Is Now A Polyfill

calendar icon

Oct 6, 2020

Header for posting Your Single-Page App Is Now A Polyfill

Why do we build single-page apps? Two main reasons really.

We want our web apps to feel “instant”, without any ugly blank screens in between pages that remind us our app is not really like an app.

Blank screens make for a bad user-experience. Users don’t want to wait for content to arrive from a server when they click a link or a button. They expect websites to be fast like native apps.

Read more >

The Failed Criticism of Web Components

calendar icon

Sep 27, 2020

Header for posting The Failed Criticism of Web Components

Here’s my response to Lea Verou’s article “The failed promise of Web Components” that was published last Thursday.

I was pointed to the article by someone on Twitter and first thought I was pointed to the article “The broken promise of Web Components” that was published in 2017, but that was not the case.

Read more >

How To Extend A Native HTML Element

calendar icon

Aug 31, 2020

Header for posting How To Extend A Native HTML Element

Ever since the days of XML we have tried to extend HTML with our own tags.

The standard library of HTML tags is fairly limited and intentionally consists of low-level building blocks, meant to be composed by developers into more high-level functionality.

Now that all modern browsers support Web Components (or more specifically Custom Elements) you can create your very own HTML elements that you can use anywhere by just loading a script and adding the tag to the document.

Read more >

How To Enable Experimental Features In Your Web App

calendar icon

Jun 1, 2020

Header for posting How To Enable Experimental Features In Your Web App

Web apps are nowadays more capable than ever and can easily compete with native apps when it comes to features.

JavaScript is more powerful than ever and your browser is now equipped with stuff like geolocation, media capture and access to the sensors of your mobile device to name a few.

These are certainly exciting times.

Read more >

It’s Time To Kill The Password

calendar icon

May 24, 2020

Header for posting It’s Time To Kill The Password

Imagine you had some very valuable jewellery stashed away in a safe somewhere.

The only way to open this safe is to give the code to another person who will then open it for you. You write the code on a piece of paper, put it in an envelope, close it and then give it to this person.

Read more >

The Case for Mobile Web Apps

calendar icon

Apr 6, 2020

Header for posting The Case for Mobile Web Apps

Apple once again received a lot of criticism last month after announcing that the latest Safari release will now erase all locally stored data by a website after a user hasn’t interacted with that website for seven days.

Although Apple later clarified that this doesn’t apply to apps installed on the home screen (PWAs), many people were still outraged and claimed that Apple is trying to kill PWAs.

Read more >

Progressive Web Apps Will Replace Your Native App

calendar icon

Mar 10, 2020

Header for posting Progressive Web Apps Will Replace Your Native App

When Steve Jobs introduced the very first iPhone in 2007, he spoke of how developers would be able to create amazing apps for the iPhone, using only web technologies. There was no App Store yet at that time and no notion of native apps.

What Jobs envisioned is the concept we now know as Progressive Web Apps, basically websites that have an app-like behavior and are able to work offline.

Read more >

How To Make Your Website Work Offline part 2

calendar icon

Mar 2, 2020

Header for posting How To Make Your Website Work Offline part 2

In my previous article I showed you how you can easily make your static website work offline by using a service worker.

But most websites today don’t only exist of static content, but dynamic content as well. This content can come from a REST API for example and this type of content won’t normally be available when a client is offline.

Read more >

How To Make Your Website Work Offline

calendar icon

Feb 9, 2020

Header for posting How To Make Your Website Work Offline

This is part 1 of a two-part series, part 2

Did you ever open a native app on your phone to be greeted with the picture of a dinosaur, telling you that you need to connect to the internet before you can even use the app?

No. Most native apps give you a much better user experience and show you at least something until you’re connected again.

Read more >

There’s No Need To Hate Web Components

calendar icon

Jan 21, 2020

Header for posting There’s No Need To Hate Web Components

Four years ago, I landed a freelance gig at an international Dutch bank. Originally I was hired to help with migrating applications from AngularJS to Angular 2, but things turned out differently all of a sudden.

One day, I bumped into one of the managers who urged me to “have a look at Polymer”, since a team in Australia had created some nice stuff with it. Polymer was now the way to go forward and literally within a few weeks, we were in the middle of migrating to Polymer.

Read more >

We’re Killing the Mobile Web

calendar icon

Jan 7, 2020

Header for posting We’re Killing the Mobile Web

Has this ever happened to you?

You’re browsing the web on your mobile phone or tablet and a banner appears on the top of the screen, urging you to install the site’s native app. This is the first time you ever visit this website, and so you decide not to install the app.

But when you visit the website a few more times, the banner keeps appearing, and after a while, you decide to give their native app a try.

Read more >

JavaScript doesn’t need to be replaced

calendar icon

Nov 24, 2019

Header for posting JavaScript doesn’t need to be replaced

Every now and then someone will argue that JavaScript needs to be replaced by some other language. The reasons for this are always that JavaScript has too many quirks that should have been fixed a long time ago.

But since these haven’t been fixed it apparently means that JavaScript is a crappy language that’s simply cannot be fixed. And so it needs to be replaced, preferably by the complainer’s favorite language.

Read more >

How To Run a Proxy Server Inside Your Browser

calendar icon

Nov 17, 2019

Header for posting How To Run a Proxy Server Inside Your Browser

While I was debugging a video-chat application I was working on recently, I had to run the full chain locally. This meant running the front end locally — as well as the two REST APIs it communicates with, which are written in Java.

Now, I’m not a Java developer, so getting both APIs running on my development machine was a bit of a challenge. On top of that, I was behind a corporate proxy, and this client requires me to work on a Windows machine they provide.

Read more >

The Lost Art of Vanilla JavaScript

calendar icon

Oct 27, 2019

Header for posting The Lost Art of Vanilla JavaScript

A couple of months ago, I did a talk on Web Components for a tech company where most attendees had no prior experience with them. It was a very fun and well-received talk that ended with a round of questions from the audience that lasted over half an hour.

Near the end, someone asked me if this meant that we were going back to the days of what he called “jQuery-like spaghetti code,” due to the raw DOM manipulation code I had shown. I could see some others nod in agreement, and this reaction really got me thinking.

Read more >

Why Coding Your Own Makes You a Better Developer

calendar icon

Oct 6, 2019

Header for posting Why Coding Your Own Makes You a Better Developer

The other day I interviewed for a senior developer position with a JavaScript developer. My colleague, who was also in the interview, asked the interviewee to write a function that would perform an HTTP call and retry it a number of times if it failed.

Since he was writing it on a whiteboard, pseudo-code would have been enough. If he had just demonstrated a good understanding of the matter we would have been happy. But unfortunately, he wasn’t able to come up with a good solution.

Read more >

What You Need to Know About Asynchronous Programming in JavaScript

calendar icon

Sep 22, 2019

Header for posting What You Need to Know About Asynchronous Programming in JavaScript

Throughout my career I’ve been in a lot of job interviews, both as an interviewer and as a candidate. I’ve seen my share of candidates fall apart when asked to code asynchronous code using Promises and async/await.

Asynchronous programming is the bread and butter of JavaScript, yet so many developers fail to truly understand it for some reason.

Read more >

Using the DOM like a Pro

calendar icon

Sep 1, 2019

Header for posting Using the DOM like a Pro

When I first started working as a professional web developer back in 2008 I knew some HTML, CSS and PHP. At the same time I was also learning this thing called JavaScript because it allowed me to show and hide elements and do cool things like dropdown menus.

At the time I was working for a small company that mainly created CMS systems for clients and we needed a multiple file uploader. Something that was not possible at that time with native JavaScript.

Read more >

Data binding for Web Components in just a few lines of code

calendar icon

Aug 18, 2019

Header for posting Data binding for Web Components in just a few lines of code

Earlier this year I wrote an article in which I claimed that Web Components will eventually replace frontend frameworks.

It generated quite some response, more than I could have hoped for and it gave me some interesting opportunities. Lots of people agreed with me, others were more critical and a few people thought I was completely out of my mind and should be banned from writing code forever. In general, good points were being made on both sides.

Read more >

Web Components will replace your frontend framework

calendar icon

Mar 27, 2019

Header for posting Web Components will replace your frontend framework

Remember when document.querySelector first got wide browser support and started to end jQuery's ubiquity? It finally gave us a way to do natively what jQuery had been providing for years: easy selection of DOM elements. I believe the same is about to happen to frontend frameworks like Angular and React.

These frameworks have enabled us to do what we always wanted but never were able to: creating reusable autonomous frontend components, but at the cost of added complexity, proprietary syntax and increased payloads.

Read more >