Gatsby: Gatsby website not showing up in Chrome

Created on 16 Jun 2017  路  11Comments  路  Source: gatsbyjs/gatsby

Nice new design. Hope this is the right repo for the blog, aplogies if not.
The site shows up fine in Safari, but not Chrome, where I get empty pages and slow loading. http://www.whatsmybrowser.org/b/QNBX5NS

Here's the contents of my console log for this page: https://www.gatsbyjs.org/blog/gatsby-first-beta-release/

layout-component---index-6816a5d6f3f6888f57e0.js Failed to load resource: the server responded with a status of 404 ()
layout-component---index-6816a5d6f3f6888f57e0.js Failed to load resource: the server responded with a status of 404 ()
app-92809bf350416bae9390.js:3117 Uncaught TypeError: executeChunk is not a function
    at app-92809bf350416bae9390.js:3117
    at app-92809bf350416bae9390.js:4190
    at handler (app-92809bf350416bae9390.js:3429)
    at app-92809bf350416bae9390.js:3473
www.gatsbyjs.org/:1 The resource https://www.gatsbyjs.org/static/tex-gyre-schola-400.030fe0c4.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.

screen shot 2017-06-16 at 3 42 20 pm

Most helpful comment

Ok! This is only a problem for repeat visitors so new people are fine :-) also it's pretty easy fix which I'll get to tomorrow.

All 11 comments

opening it up in incognito, it works okay. Must be a conflict with one of my plugins. I whitelisted the site on disconnect. I'll see what I can find, and hopefully it's just local to me.

Ugh, really got to fix this issue.

So the problem is that Gatsby is loading from a service worker which is great but sometimes your browser loads an old version of the site and when it does it'll then try to fetch stuff off the server which don't exist anymore so a 404 error happens. Unfortunately Gatsby's page resource fetching code is naive so it doesn't handle this.

What I need to do is catch errors like this and then force a refresh with a new service worker so you're updated to the latest version of the site.

Thanks for the report and bearing with our rocky roll out :-)

Ah, okay, hence it working in incognito. I was going to feature the site in my newsletter, but I can wait. Looks great though and am excited for you getting so close to 1.0!

Ok! This is only a problem for repeat visitors so new people are fine :-) also it's pretty easy fix which I'll get to tomorrow.

Woops. Just posted this issue #1193 refering to the same (kind of) problem.

Did some work on this https://github.com/gatsbyjs/gatsby/pull/1217

If a user w/ sw navigates to a page it doesn't know it immediately reloads. Also when a new service worker is installed the page is reloaded. Makes for a bit of a "hiccup" but it's not too bad (loading from the sw is fast). We'll roll with this for a while and see how we like it.

Hi @KyleAMathews! Although this issue is quite old, I'm revisiting it regarding SW. What is the best way to update websites so returning users load performance will not be degraded?

Note:
Currently, we publish our website from S3 through CloudFront (+ Lambda Edge).
Every new version we effectively delete the previous one ( which sort of wrong :) ) , and this might be the reason for slow first time loading of the website for revisiting users.

I am actually running into this problem as well, it was working a few hours ago and when I serve it to localhost now I'm getting a blank page.

I got this error when Refreshing this page: https://mikaelboutin.com/en/page-2/

There's the repo of my project like it is now online https://github.com/DWboutin/gatsby-setup

Can you check it quick @KyleAMathews or any of you? Thank you

I鈥檓 also having this issue on iOS Safari. The site loads in a private tab. Not in a regular tab. Is there a way to resolve this? Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikestopcontinues picture mikestopcontinues  路  3Comments

3CordGuy picture 3CordGuy  路  3Comments

rossPatton picture rossPatton  路  3Comments

andykais picture andykais  路  3Comments

benstr picture benstr  路  3Comments