Read-only web apps

The most cartoonish misrepresentation of progressive enhancement is that it means making everything work without JavaScript.

No. Progressive enhancement means making sure your core functionality works without JavaScript.

In my book Resilient Web De…


This content originally appeared on Adactio: Journal and was authored by Adactio: Journal

The most cartoonish misrepresentation of progressive enhancement is that it means making everything work without JavaScript.

No. Progressive enhancement means making sure your core functionality works without JavaScript.

In my book Resilient Web Design, I quoted Wilto:

Lots of cool features on the Boston Globe don’t work when JS breaks; “reading the news” is not one of them.

That’s an example where the core functionality is readily identifiable. It’s a newspaper. The core functionality is reading the news.

It isn’t always so straightforward though. A lot of services that self-identify as “apps” will claim that even their core functionality requires JavaScript.

Surely I don’t expect Gmail or Google Docs to provide core functionality without JavaScript?

In those particular cases, I actually do. I believe that a textarea in a form would do the job nicely. But I get it. That might take a lot of re-engineering.

So how about this compromise…

Your app should work in a read-only mode without JavaScript.

Without JavaScript I should still be able to read my email in Gmail, even if you don’t let me compose, reply, or organise my messages.

Without JavaScript I should still be able to view a document in Google Docs, even if you don’t let me comment or edit the document.

Even with something as interactive as Figma or Photoshop, I think I should still be able to view a design file without JavaScript.

Making this distinction between read-only mode and read/write mode could be very useful, especially at the start of a project.

Begin by creating the read-only mode that doesn’t require JavaScript. That alone will make for a solid foundation to build upon. Now you’ve built a fallback for any unexpected failures.

Now start adding the read/write functionally. You’re enhancing what’s already there. Progressively.

Heck, you might even find some opportunities to provide some read/write functionality that doesn’t require JavaScript. But if JavaScript is needed, that’s absolutely fine.

So if you’re about to build a web app and you’re pretty sure it requires JavaScript, why not pause and consider whether you can provide a read-only version.


This content originally appeared on Adactio: Journal and was authored by Adactio: Journal


Print Share Comment Cite Upload Translate Updates
APA

Adactio: Journal | Sciencx (2023-04-20T12:20:32+00:00) Read-only web apps. Retrieved from https://www.scien.cx/2023/04/20/read-only-web-apps/

MLA
" » Read-only web apps." Adactio: Journal | Sciencx - Thursday April 20, 2023, https://www.scien.cx/2023/04/20/read-only-web-apps/
HARVARD
Adactio: Journal | Sciencx Thursday April 20, 2023 » Read-only web apps., viewed ,<https://www.scien.cx/2023/04/20/read-only-web-apps/>
VANCOUVER
Adactio: Journal | Sciencx - » Read-only web apps. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/04/20/read-only-web-apps/
CHICAGO
" » Read-only web apps." Adactio: Journal | Sciencx - Accessed . https://www.scien.cx/2023/04/20/read-only-web-apps/
IEEE
" » Read-only web apps." Adactio: Journal | Sciencx [Online]. Available: https://www.scien.cx/2023/04/20/read-only-web-apps/. [Accessed: ]
rf:citation
» Read-only web apps | Adactio: Journal | Sciencx | https://www.scien.cx/2023/04/20/read-only-web-apps/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.