Did you ever wish you could serve some parts of your HTML earlier or later than others?
Read more >How Out-Of-Order Streaming HTML Will Revolutionize The Web
Nov 30, 2026
Nov 30, 2026
Did you ever wish you could serve some parts of your HTML earlier or later than others?
Read more >Nov 11, 2026
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 >Nov 1, 2026
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 >Oct 23, 2025
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 >Jul 23, 2025
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 >Mar 9, 2025
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 >Feb 2, 2025
Oct 28, 2024
Do you know the difference between the pagehide, beforeunload and visibilitychange event?
If you don’t, I don’t blame you.
Read more >Oct 9, 2024
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 >Sep 30, 2024
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 >Sep 15, 2024
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 >Jul 9, 2024
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 >Jun 5, 2024
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 >Feb 26, 2024
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 >Feb 20, 2024
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 >Feb 15, 2024
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 >Feb 7, 2024
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 >Feb 5, 2024
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:
Nov 13, 2023
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 >Oct 24, 2023
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.
Oct 16, 2023
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 >Oct 3, 2023
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 >Sep 25, 2023
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 >Aug 28, 2023
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 >Jul 16, 2023
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 >Jun 28, 2023
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 >May 10, 2023
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 >Apr 27, 2023
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 >Nov 21, 2022
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 >Nov 15, 2022
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 >Sep 13, 2022
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 >Aug 9, 2022
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 >Jul 21, 2022
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 >Feb 1, 2022
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 >Nov 16, 2020
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 >Oct 6, 2020
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 >Sep 27, 2020
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 >Aug 31, 2020
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 >Jun 1, 2020
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 >May 24, 2020
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 >Apr 6, 2020
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 >Mar 10, 2020
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 >Mar 2, 2020
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 >Feb 9, 2020
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 >Jan 21, 2020
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 >Jan 7, 2020
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 >Nov 24, 2019
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 >Nov 17, 2019
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 >Oct 27, 2019
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 >Oct 6, 2019
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 >Sep 22, 2019
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 >Sep 1, 2019
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 >Aug 18, 2019
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 >Mar 27, 2019
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 >