Replies: 3 comments
-
Hi @felquis, this is a great topic and one we hope to get to eventually as we have discussed a lot about progressive enhancement and no-JS. Right now, most of the primitives (if not all) won't work without javascript as we haven't catered for it. We have discussed potential ideas but I would say these are much further down the line. |
Beta Was this translation helpful? Give feedback.
-
That would definitely be a great feature to have! The experience of course doesn't need to be the same without JS, but it would be nice if the component was functional at least. |
Beta Was this translation helpful? Give feedback.
-
I think progressive enhancement is a great and very achievable goal! It also helps make components accessible by default, and have better functionality in noscript environments. In my mind, the main things that need to change are:
|
Beta Was this translation helpful? Give feedback.
-
In summary,
This way I can at a glance without the need to disable JavaScript thy the component I can know if for my use case I want to continue with that component or not.
Also, disabling the JavaScript and looking at how it works today, may also lead to insights of how it could possible work better without JavaScript in an progressive enhancement manner.
A session on the documentation mentioning the lib position on this matter after all could prevent future people asking the same questions I am asking now. (if there is already a session please share it with me.)
Ultimately, pushing for a progressive enhancement approach may also help to deliver accessible interfaces as well.
A short story
These days I built a mobile menu that works without JavaScript loaded, and when the JavaScript loaded it just adds extra functionalities to it making it even more awesome.
What I gain with it I presume is a faster time to interactive since SSR works fine, the HTML/CSS is fully loaded and some 70kb of JavaScript may be on the way.
I tried to find discussions on this topic on issues and discussions but I couldn't, so this is my kindly attempt to open the discussion, if it already happened somewhere else, please share a link to the it and I'll follow. If this is the first discussion on the topic, please be mindful and do not send short aggressive answers since I'm genuinely questioning something I care about.
Thank you all in advance.
Beta Was this translation helpful? Give feedback.
All reactions