Progressive Enhancement is non-negotiable.

Progressive Enhancement is non-negotiable.

By Alexandre Plennevaux Rant

Progressive Enhancement is non-negotiable.

I was drawn to the Internet back in 1997, when I got a proper (ISDN!) connection at my first office position in a large European company. These were the days of MS FrontPage. The websites I built were an horrendous bunch of code, mixture of bastardy html and some proprietary version of a prehistorical version of Javascript by Microsoft.

The browser war was raging and Netscape was the clear leader. There was pretty much one screen standard : 1024x768 resolution replaced the legacy 800x600. It seemed huge! Screens were bulky analog monitors. Of course, we used <table> and loads of 1px-square transparent gif files as spacers to make interfaces, conceived by print(!) designers.

There was no other choice than code like a pyromaniac bastard.

That was the Internet

21 years later, this is 2018. We still build static websites (it was almost deemed old-fashioned a few years ago to not have a dynamic website) but also SPA (Single Page Applications), Progressive Web Apps. Virtual Reality is becoming mainstream. Fridges automatically order tomorrows' bottle of milk from an online dairy store. Standards have arisen for html, css and javascript. It's never been easier to build something and put it online.

Yet, turn off javascript and half of the internet breaks. Because of that "cool javascript framework" that allows pretty much anyone build things fast, without even understanding the underlying architecture, or the purpose of JS Frameworks : SPA, not presentational websites.

AS often is the case, "Fast" for the developer means "bad" for the end-user.

As developers, for the sake of keeping the universal access of the information we put online (and the very reason we exist), we need to re-claim the Progressive Enhancement methodology. Here are just a few reasons why:

1. It is good for the user

  • Disabled people, for whom static rendering and full-page reloads are typically still more (not exclusively, but more, and more easily) accessible.
  • Search engine spiders (it is being said the GoogleBot parse javascript, but how well exactly ? Google does not recommend js-only interfaces, so, that's that)

2. It is good for the developer

  • It's not hard : the html.js trick enables writing CSS only applying to javascript-enabled contexts. Javascript framework ? Use the <noscript> tag, at the very least, so that everyone (including the GoogleBot) gets access to your content.
  • It's not expensive, on the contrary : you gain time because your code is more maintainable and easier to debug. Thank you miss Separation of Concern.
  • you have no idea what devices your code will run on in two years. Build "future-proof" digital products, not sand castles, crushed by the next wave.

3. This is why the Internet was built for.

4. It takes but a few minutes to grasp.

Here is a presentation I did for my bad-ass junior developers at BeCode. Have a browse.

Stil not convinced ? Head over this Reddit thread.

I leave the final word to **T

Originally published on DEV ↗

ATmosphere reactions