Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle who care about creating, delivering, and maintaining software responsibly. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know requiring javascript on a webpage has been a hot topic the last couple years.

I'm wondering if someone wanted to use custom elements but still allow the website to be usable without javascript how would they do that?

Would they have to add a <noscript> with regular elements? or is there some way for browsers to know what to fall back to if a custom element is used but javascript isn't enabled?

share|improve this question
    
What are you trying to accomplish? Are you trying to figure out what happens to your tags with JavaScript disabled? – svidgen Oct 26 at 23:34
    
I'm wondering what the best practice would be for someone who wants to use the new web components standard and still provide a usable experience for people who don't want to use javascript – Tony Brix Oct 27 at 4:14
    
The answer to most questions along the line “I want to do fancy stuff with JS but only as progressive enhancement” is “server-side rendering”. – amon Oct 27 at 8:22
    
is there a way to use server side rendering with web components? – Tony Brix Oct 27 at 16:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.