Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated index.html should contain a <noscript> tag #854

Closed
nanomad opened this issue Feb 18, 2018 · 1 comment
Closed

Generated index.html should contain a <noscript> tag #854

nanomad opened this issue Feb 18, 2018 · 1 comment

Comments

@nanomad
Copy link
Contributor

nanomad commented Feb 18, 2018

What problem does this feature solve?

By default a project generated by vue-cli doesn't pass the no-js Lighthouse inspection:

https://developers.google.com/web/tools/lighthouse/audits/no-js

What does the proposed API look like?

vue-cli should add something like the following in index.html inside the body tag to notify users that Javascript is mandatory:

<noscript>
    <strong>We're sorry but {{APP_NAME}} doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
yyx990803 pushed a commit that referenced this issue Feb 21, 2018
Add some default content that can be seen by browsers where JavaScript
is disabled. See:
https://developers.google.com/web/tools/lighthouse/audits/no-js

Closes #854
@mrksbnch
Copy link

Is there any way to remove this element? E.g. in most cases the app would still work without JS if you are using SSR?

blue-santa pushed a commit to blue-santa/kmd-dev-tools that referenced this issue Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants