http://jakearchibald.com/2013/progressive-enhancement-still-...
http://jakearchibald.com/2013/progressive-enhancement-still-...
The web is no longer a collection of text content with links and forms. Many, is not most, web apps cannot be represented using html alone as progressive enhancement suggests. The core functionality just isn't there.
That's exactly the use-case of server-side JavaScript! Write a small library to build curl commands; use it in both the web page's JS and on the server, with a small shim on each. 1¼ times the work.
Just implement it as a regular form-based application, then add some JavaScript which Ajax-submits the form data and loads in the generated curl command on each keystroke.
(Or you could use server-side JS and share code on the client and server)
Should every chat app have a non-JS fallback option? Do we need to implement all color scheme, layout and templating tools in pure CSS?
Facetiousness aside, the web is most definitely not just text based anymore. Whether we like it or not, the web is now in part visual (and aural) and is becoming increasingly moreso. This is not a bad thing. It provides a platform for rapidly developing and deploying applications that cover the full gamut of uses we have thought up for the personal computer.
Using JS to simply display static content is overkill and not the best use of the technology and it is absolutely correct to say that this is better served by using Plain Old HTML. That is not the entirety of the web anymore and the more I see this argument that every web app must support a text only interface the more it sounds to me like an argument for every television show and movie to be produced as a radio drama with pictures.
Is it really that hard to add "We're sorry but your page did not load correctly" ?
I suppose I should have more verbosely indicated the facetiousness of the first few rhetorical questions but they do serve a point.
Also, I'd argue that the application-based web is still a minority compared to the content-based web, and you should check what side your site is really on.
Web applications are certainly useful in some contexts, and progressive enhancement may not be the best approach if your application requires a lot of extended interaction. But building a web app to display primarily text- and picture-based articles and documents is misguided, and it does web users a disservice.