Gatsby: What's the expected behaviour when disabling JavaScript

Created on 11 Dec 2017  路  2Comments  路  Source: gatsbyjs/gatsby

Whilst working on my personal site, I noticed that only the first page will be rendered when I disable JavaScript. All the other pages just show the header and an empty page. I saw some Gatsby starters that don't work with JavaScript either and I was wondering what the expected behavior is when disabling JavaScript on your production build. Are there certain things like extending a React Component that prevents pages from being output in HTML?

  • Gatsby version: 1.9.130
  • Node version: 8.6.0
  • OS: OSX High Sierra
question or discussion

Most helpful comment

I apologize for this premature thread! I just discovered that it was the service worker messing about. When I clear out the site data / service worker and disable JavaScript, all the pages still work.

All 2 comments

I apologize for this premature thread! I just discovered that it was the service worker messing about. When I clear out the site data / service worker and disable JavaScript, all the pages still work.

Thank you very much, I ran into the same problem. Your messaged helped me a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikestopcontinues picture mikestopcontinues  路  3Comments

3CordGuy picture 3CordGuy  路  3Comments

ghost picture ghost  路  3Comments

andykais picture andykais  路  3Comments

kalinchernev picture kalinchernev  路  3Comments