Skip to content

fix(gatsby): remove default noscript tag from html.js template #20023

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

Merged
merged 4 commits into from
Dec 11, 2019

Conversation

gilbertoayala12
Copy link
Contributor

Description

Removed banner saying This app works best with JavaScript enabled as requested.
This is no longer necessary because gatsby-plugin-offline was fixed to refresh when javascript was disabled plus lighthouse checks if any content is available.

Related Issues

Fixes #20021

@gilbertoayala12 gilbertoayala12 requested a review from a team as a code owner December 9, 2019 22:28
@wardpeet
Copy link
Contributor

Hey, thanks for your first contribution! 🎉 It seems like our tests are failing. To fix this, could you run yarn jest -u packages/gatsby/cache-dir/__tests__/static-entry.js in your terminal? This should change some of our snap files.

@gilbertoayala12
Copy link
Contributor Author

gilbertoayala12 commented Dec 10, 2019

@wardpeet Thank you! I ran the command you said, let's hope it passes the tests 😅

@pieh pieh self-assigned this Dec 11, 2019
@gilbertoayala12 gilbertoayala12 requested a review from a team as a code owner December 11, 2019 11:42
@pieh pieh changed the title Removed noscript tag from gatsby fix(gatsby): remove default noscript tag from html.js template Dec 11, 2019
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gilbertoayala12! ❤️

Verified that lighthouse no longer list no content as an issue when JS is disabled with offline plugin installed, so this is good to go in!

@pieh pieh added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Dec 11, 2019
@gatsbybot gatsbybot merged commit ebdaf6d into gatsbyjs:master Dec 11, 2019
@gatsbot
Copy link

gatsbot bot commented Dec 11, 2019

Holy buckets, @gilbertoayala12 — we just merged your PR to Gatsby! 💪💜

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. We’ve got Gatsby t-shirts, stickers, hats, scrunchies, and much more. (You can also unlock even more free swag with 5 contributions — wink wink nudge nudge.) See gatsby.dev/swag for details.
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again!

@nkhil
Copy link

nkhil commented May 23, 2020

@gilbertoayala @pieh @wardpeet I'm desperately trying to remove the This app works best with JavaScript enabled. message displayed when my Gatsby site is viewed with JS turned off.

I'm currently on Version 2.13.73of Gatsby. Will upgrading to the latest turn off the This app works best with JavaScript enabled. message?

I've tried a few other things, and haven't been successful.

@pieh
Copy link
Contributor

pieh commented May 23, 2020

@nkhil This changes was added in [email protected]. You can either upgrade or use guide in https://www.gatsbyjs.org/docs/custom-html/ to customize html template

@nkhil
Copy link

nkhil commented May 23, 2020

@pieh Thank you so much - that's worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove noscript "This app works best with JavaScript enabled." from gatsby
6 participants