DEV Community

Discussion on: Why are Web Components interesting?

Collapse
 
hendrikras profile image
Hendrik Ras

You are certainly right about the lock-in of these frameworks. However with SSR being the trend it is nowadays, frameworks like React can be used without browsers even needing to have JavaScript enabled in the browser.
That may not sound like much of an argument, but there really are some valid cases where you would need the UI to still work without JavaScript. What would be your take on that?

Collapse
 
dannyengelman profile image
Danny Engelman

Can you name those valid cases?

Collapse
 
hendrikras profile image
Hendrik Ras

Sure, I once read about a case where they were developing a website for suicide prevention. The design philosophy there was that the site should always present the information, the site should not be dependent on JavaScript to display, just in case it was turned off.

There is a growing number of people that choose to turn it off because they do not want to be tracked.

Lastly, although screen readers and other accessibility tools nowadays can cope pretty well with the modern web, those tools still struggle with SPA's.

Thread Thread
 
dannyengelman profile image
Danny Engelman

"I once read"

"a growing number people"

Where are the sites that actual do not run on JS?

Thread Thread
 
hendrikras profile image
Hendrik Ras

You can turn off JavaScript and see for yourself. Government websites would be a good place to start.