< Back

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

Stop reinforcing the idea that web apps are inferior.

calendar

Sep 15, 2024

Header for posting If We Want PWAs To Be Taken Seriously, We Need To Take Them Seriously
Photo by Luis Villasmil on Unsplash

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.

If you didn’t know that, you’re not the only one. Most people use their native apps and probably don’t even know what a PWA (Progressive Web App) is.

I use the X PWA daily and it works perfectly fine for me because it does exactly what the native app does. You won’t even be able to tell the difference if you put them next to each other but when you dig a little deeper, things fall apart.

Native apps typically work offline, which means that you can still use them while you’re not connected to the internet. Of course, social media apps won’t show you any new content while you’re offline but at least they’ll show you something.

PWAs can do that too, but unfortunately, the X and Instagram PWAs don’t work offline. Have a look at this video to see what I mean:

The native apps of X and Instagram will just show you your timeline when you’re offline. It might be outdated but you can still use the app. The PWAs just give you an empty page so they’re useless.

Why is that?

PWAs are perfectly capable of working offline, but two of the largest social media platforms couldn’t be bothered to implement it.

Oh, and it’s not only that. When someone sends you a link to an Instagram post and you click it, it will be opened in the native app if you have it installed. But if you don’t, it will open in the browser and fail miserably most of the time:

“Web apps are inferior”

As much as it hurts me, I often can’t blame people for thinking web apps are inferior to native apps. Many are just dumb-down versions of their native counterparts that only exist to get you to an app store and install the native version.

As soon as you open the web app, you’re greeted with a nagging banner that urges you to install the native app that gives you more features and a better user experience, and sometimes, not even that.

Users have become used to this and started thinking web apps are inferior. While there are still technical limitations for web apps, many native apps could just as well be (progressive) web apps.

I’m happy that X and Instagram at least offer a PWA, but the fact that these don’t work offline reinforces the idea that web apps are inferior. If even they can’t do it, how can web apps be any good?

We need to take web apps seriously

Native apps set the standard a long time ago and any web app that doesn’t conform to it simply won’t cut it. A PWA that doesn’t work offline, that has sloppy animations, or an otherwise bad UX reinforces the idea that web apps are inferior. This is what hurts web apps the most and companies like X and Instagram that offer a sub-standard web app don’t help.

For PWAs to succeed, we as developers, need to take them seriously. Very seriously.

We need to create great examples that nail it when it comes to a great user experience. Anything less is simply harmful. For years, users have been conditioned to think web apps are inferior, and many, willingly or not, still reinforce that idea by providing a user experience that’s not as good as it could be.

We need to do better.

Where to start

At the very least, your web app should be able to work offline. Show something to the user when your web app is not connected to the internet. Anything is better than that white screen that says you’re offline.

You can easily do this by adding a Service Worker to your web app that caches the static assets (images, stylesheets, scripts, etc.) and HTML responses to routes you provide.

This is beneficial for all web apps, even the ones that need a network to function like messaging apps because offline support is not about providing the exact same user experience online and offline.

A far more common situation is that the user is on a flaky and/or slow connection that causes your web app to break.

Even when you’re on 5G, you can experience a bad or slow connection in certain areas or circumstances.

It is for those situations that your app should provide the best possible user experience.

If your web app uses a Service Worker, it can cache all scripts, images, stylesheets, and other assets locally, so when the user is on a bad connection, there is no bandwidth wasted on downloading these assets because they’re already there. That limited bandwidth can then be used for other stuff so your web app still provides a good user experience, despite the bad network.

That is what offline support means.

I created a basic Service Worker to make your web app work offline. Grab it from Github, add it to your web app, and share the result on X using the hashtag #ProjectServiceWorker.

A basic Service Worker to make your web app work offline - DannyMoerkerke/basic-service-worker

I want to collect 100 web apps that have implemented offline support through this Service Worker to raise awareness and get as many web apps as possible to work offline.

If we want to make great web apps, here’s where we should start.


Join my email list Modern Web Weekly, for a weekly update on Progressive Web Apps (PWA), Web Components and new features of the modern web platform, tested and explained in plain English.